boards/x86: add Intel64 (64-bit long-mode) QEMU target board

Add qemu_x86_long board (with CONFIG_X86_LONGMODE=y) for testing.

This requires adding support to soc/ia32 for long mode (trivial),
and adding a quick 64- to 32-bit ELF conversion before invoking
QEMU, which apparently doesn't like 64-bit kernel files.

Signed-off-by: Charles E. Youse <charles.youse@intel.com>
This commit is contained in:
Charles E. Youse 2019-07-22 15:49:25 -07:00 committed by Andrew Boie
commit 640c5a5e95
8 changed files with 75 additions and 3 deletions

View file

@ -45,5 +45,8 @@ MEMORY
IDT_LIST : ORIGIN = 0xFFFF1000, LENGTH = 2K
}
#ifdef CONFIG_X86_LONGMODE
#include <arch/x86/intel64/linker.ld>
#else
#include <arch/x86/ia32/linker.ld>
#endif