From: "Yinghai Lu" <yhlu.kernel@gmail.com>
To: "Huang, Ying" <ying.huang@intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
andi@firstfloor.org, mingo@redhat.com, tglx@linutronix.de,
"Paul Jackson" <pj@sgi.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/4] x86_64 boot -v2: Add linked list of struct setup_data
Date: Sun, 30 Mar 2008 01:15:21 -0700 [thread overview]
Message-ID: <86802c440803300115w6f3cc08cha72d3dc20bc4ec8e@mail.gmail.com> (raw)
In-Reply-To: <1206672584.13404.25.camel@caritas-dev.intel.com>
On Thu, Mar 27, 2008 at 7:49 PM, Huang, Ying <ying.huang@intel.com> wrote:
> This patch add a field of 64-bit physical pointer to NULL terminated
> single linked list of struct setup_data to real-mode kernel
> header. This is used as a more extensible boot parameters passing
> mechanism.
>
> Signed-off-by: Huang Ying <ying.huang@intel.com>
>
> ---
> arch/x86/boot/header.S | 6 +++++-
> arch/x86/kernel/head64.c | 20 ++++++++++++++++++++
> arch/x86/kernel/setup_64.c | 22 ++++++++++++++++++++++
> include/asm-x86/bootparam.h | 14 ++++++++++++++
> 4 files changed, 61 insertions(+), 1 deletion(-)
>
...
> +static void __init reserve_setup_data(void)
> +{
> + struct setup_data *data;
> + unsigned long pa_data;
> + char buf[32];
> +
> + if (boot_params.hdr.version < 0x0209)
> + return;
> + pa_data = boot_params.hdr.setup_data;
> + while (pa_data) {
> + data = early_ioremap(pa_data, sizeof(*data));
> + sprintf(buf, "setup data %x", data->type);
> + reserve_early(pa_data, pa_data+sizeof(*data)+data->len, buf);
> + pa_data = data->next;
> + early_iounmap(data, sizeof(*data));
> + }
current reserve_early will have limitation with 20 entries.
/*
* Early reserved memory areas.
*/
#define MAX_EARLY_RES 20
or we need to make reserve_early a little bit smart, so it could merge
continuous region...
and then your free_early need to be updated too.
YH
next prev parent reply other threads:[~2008-03-30 8:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 2:49 Huang, Ying
2008-03-30 4:25 ` Paul Jackson
2008-03-30 4:31 ` Paul Jackson
2008-03-31 0:54 ` Huang, Ying
2008-04-02 7:39 ` Paul Jackson
2008-04-02 16:39 ` H. Peter Anvin
2008-04-02 17:36 ` Paul Jackson
2008-03-30 8:15 ` Yinghai Lu [this message]
2008-03-31 0:52 ` Huang, Ying
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86802c440803300115w6f3cc08cha72d3dc20bc4ec8e@mail.gmail.com \
--to=yhlu.kernel@gmail.com \
--cc=andi@firstfloor.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pj@sgi.com \
--cc=tglx@linutronix.de \
--cc=ying.huang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®