From 3cf23719b1dc97d17ed649493b0b61641a79ab1f Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Sun, 28 Feb 2016 23:54:50 -0800 Subject: x86: Support booting SeaBIOS SeaBIOS is an open source implementation of a 16-bit x86 BIOS. It can run in an emulator or natively on x86 hardware with the use of coreboot. With SeaBIOS's help, we can boot some OSes that require 16-bit BIOS services like Windows/DOS. As U-Boot, we have to manually create a table where SeaBIOS gets system information (eg: E820) from. The table unfortunately has to follow the coreboot table format as SeaBIOS currently supports booting as a coreboot payload. Signed-off-by: Bin Meng Reviewed-by: Simon Glass --- arch/x86/include/asm/tables.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/x86/include/asm/tables.h') diff --git a/arch/x86/include/asm/tables.h b/arch/x86/include/asm/tables.h index 9e6754f..ae9f0d0 100644 --- a/arch/x86/include/asm/tables.h +++ b/arch/x86/include/asm/tables.h @@ -16,6 +16,9 @@ #define ROM_TABLE_ALIGN 1024 +/* SeaBIOS expects coreboot tables at address range 0x0000-0x1000 */ +#define CB_TABLE_ADDR 0x800 + /** * table_compute_checksum() - Compute a table checksum * -- cgit v1.1