x86/boot: Mostly revert commit ae7e1238e6
("Add ACPI RSDP address to setup_header")
Peter Anvin pointed out that commit:ae7e1238e6
("x86/boot: Add ACPI RSDP address to setup_header") should be reverted as setup_header should only contain items set by the legacy BIOS. So revert said commit. Instead of fully reverting the dependent commit of:e7b66d16fe
("x86/acpi, x86/boot: Take RSDP address for boot params if available") just remove the setup_header reference in order to replace it by a boot_params in a followup patch. Suggested-by: "H. Peter Anvin" <hpa@zytor.com> Signed-off-by: Juergen Gross <jgross@suse.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: boris.ostrovsky@oracle.com Cc: bp@alien8.de Cc: daniel.kiper@oracle.com Cc: sstabellini@kernel.org Cc: xen-devel@lists.xenproject.org Link: http://lkml.kernel.org/r/20181120072529.5489-2-jgross@suse.com Signed-off-by: Ingo Molnar <mingo@kernel.org>
This commit is contained in:

committed by
Ingo Molnar

parent
d19f9130b8
commit
3841840449
@@ -1280,23 +1280,6 @@ void __init setup_arch(char **cmdline_p)
|
||||
unwind_init();
|
||||
}
|
||||
|
||||
/*
|
||||
* From boot protocol 2.14 onwards we expect the bootloader to set the
|
||||
* version to "0x8000 | <used version>". In case we find a version >= 2.14
|
||||
* without the 0x8000 we assume the boot loader supports 2.13 only and
|
||||
* reset the version accordingly. The 0x8000 flag is removed in any case.
|
||||
*/
|
||||
void __init x86_verify_bootdata_version(void)
|
||||
{
|
||||
if (boot_params.hdr.version & VERSION_WRITTEN)
|
||||
boot_params.hdr.version &= ~VERSION_WRITTEN;
|
||||
else if (boot_params.hdr.version >= 0x020e)
|
||||
boot_params.hdr.version = 0x020d;
|
||||
|
||||
if (boot_params.hdr.version < 0x020e)
|
||||
boot_params.hdr.acpi_rsdp_addr = 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_X86_32
|
||||
|
||||
static struct resource video_ram_resource = {
|
||||
|
Reference in New Issue
Block a user