[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181022060613.GK1885@192.168.1.4>
Date: Mon, 22 Oct 2018 14:06:13 +0800
From: Baoquan He <bhe@...hat.com>
To: "Fan, Chao" <fanc.fnst@...fujitsu.com>, dyoung@...hat.com
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"x86@...nel.org" <x86@...nel.org>,
"linux-efi@...r.kernel.org" <linux-efi@...r.kernel.org>,
"linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>,
"bp@...en8.de" <bp@...en8.de>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"mingo@...hat.com" <mingo@...hat.com>,
"hpa@...or.com" <hpa@...or.com>,
"keescook@...omium.org" <keescook@...omium.org>,
"msys.mizuma@...il.com" <msys.mizuma@...il.com>,
"Indoh, Takao" <indou.takao@...itsu.com>,
"Cao, Jin" <caoj.fnst@...fujitsu.com>
Subject: Re: [PATCH v9 5/8] x86/boot: Add get_acpi_rsdp() to parse RSDP in
cmdlien from kexec
On 10/22/18 at 05:30am, Fan, Chao wrote:
> >> +static void get_acpi_rsdp(acpi_physical_address *rsdp_addr)
> >> +{
> >> +#ifdef CONFIG_KEXEC
> >> + unsigned long long res;
> >> + int len = 0;
> >> + char *val;
> >> +
> >> + val = malloc(20);
> >
> >Why is the length 20? Defined a macro?
> >
>
> Not a calculation, if it's enough to store the address, that will be OK.
Sorry, I didn't catch. It's 16 in setup_acpi_rsdp() of
drivers/acpi/osl.c . What does 'that' mean?
Wondering why not making it 200, it's also enough to store the address.
Powered by blists - more mailing lists