Re: [PATCH v11 1/5] x86/boot: Add efi_get_rsdp_addr() to dig out RSDP from EFI table

2018-11-12 Thread Chao Fan
On Mon, Nov 12, 2018 at 03:54:33PM +0100, Borislav Petkov wrote: >On Mon, Nov 12, 2018 at 05:46:41PM +0800, Chao Fan wrote: >> In order to parse SRAT table and get memory information, RSDP pointer >> should be found. In kernel, there are three methods to get RSDP: >> EFI condition, BIOS condition

Re: [PATCH v11 1/5] x86/boot: Add efi_get_rsdp_addr() to dig out RSDP from EFI table

2018-11-12 Thread Borislav Petkov
On Mon, Nov 12, 2018 at 05:46:41PM +0800, Chao Fan wrote: > In order to parse SRAT table and get memory information, RSDP pointer > should be found. In kernel, there are three methods to get RSDP: > EFI condition, BIOS condition and KEXEC condition. The first works > for EFI condition.

[PATCH v11 1/5] x86/boot: Add efi_get_rsdp_addr() to dig out RSDP from EFI table

2018-11-12 Thread Chao Fan
In order to parse SRAT table and get memory information, RSDP pointer should be found. In kernel, there are three methods to get RSDP: EFI condition, BIOS condition and KEXEC condition. The first works for EFI condition. Imitate ACPI code and EFI code to dig RSDP pointer from EFI tables. Process: