[coreboot-gerrit] New patch to review for coreboot: WIP: cpu/qemu-x86: Run a C environment in the bootblock
Alexandru Gagniuc (mr.nuke.me@gmail.com)
gerrit at coreboot.org
Sun Oct 11 01:36:50 CEST 2015
Alexandru Gagniuc (mr.nuke.me at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11858
-gerrit
commit 85574fea9ed5056c584d48b764103ef0f3e001f5
Author: Alexandru Gagniuc <mr.nuke.me at gmail.com>
Date: Sat Oct 10 16:35:58 2015 -0700
WIP: cpu/qemu-x86: Run a C environment in the bootblock
Change-Id: Idf161d363d2daf3c55454d376ca42d492463971a
Signed-off-by: Alexandru Gagniuc <mr.nuke.me at gmail.com>
---
src/cpu/qemu-x86/Kconfig | 1 +
src/cpu/qemu-x86/Makefile.inc | 1 +
src/cpu/qemu-x86/bootblock.S | 5 +++++
3 files changed, 7 insertions(+)
diff --git a/src/cpu/qemu-x86/Kconfig b/src/cpu/qemu-x86/Kconfig
index 67c9ce7..2237f34 100644
--- a/src/cpu/qemu-x86/Kconfig
+++ b/src/cpu/qemu-x86/Kconfig
@@ -23,3 +23,4 @@ config CPU_QEMU_X86
select ARCH_VERSTAGE_X86_32
select ARCH_ROMSTAGE_X86_32
select ARCH_RAMSTAGE_X86_32
+ select C_ENVIRONMENT_BOOTBLOCK
diff --git a/src/cpu/qemu-x86/Makefile.inc b/src/cpu/qemu-x86/Makefile.inc
index 143f4fe..b02718a 100644
--- a/src/cpu/qemu-x86/Makefile.inc
+++ b/src/cpu/qemu-x86/Makefile.inc
@@ -16,6 +16,7 @@
## Foundation, Inc.
##
+bootblock-y += bootblock.S
ramstage-y += qemu.c
subdirs-y += ../x86/mtrr
subdirs-y += ../x86/lapic
diff --git a/src/cpu/qemu-x86/bootblock.S b/src/cpu/qemu-x86/bootblock.S
new file mode 100644
index 0000000..fc52295
--- /dev/null
+++ b/src/cpu/qemu-x86/bootblock.S
@@ -0,0 +1,5 @@
+.global bootblock_pre_c_entry
+.global main
+
+bootblock_pre_c_entry:
+ jmp main
\ No newline at end of file
More information about the coreboot-gerrit
mailing list