From 6a6535b204af56c5521de6a97b677f6628a241fa Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Fri, 23 Feb 2007 07:23:24 +0000 Subject: [PATCH] We don't (yet) have an entry point field for LARs. I am not sure we ever should -- KISS should apply. So, the first function called via LAR is the first function in the file. For now, reorder this so main is first. We now are getting into stage 2. Signed-off-by: Ronald G. Minnich Acked-by: Ronald G. Minnich Acked-by: Stefan Reinauer git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@82 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- mainboard/emulation/qemu-i386/initram.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mainboard/emulation/qemu-i386/initram.c b/mainboard/emulation/qemu-i386/initram.c index f09d4baa2f..6db105d57b 100644 --- a/mainboard/emulation/qemu-i386/initram.c +++ b/mainboard/emulation/qemu-i386/initram.c @@ -23,13 +23,9 @@ int printk(int msg_level, const char *fmt, ...); void die(const char *msg); +static void post_code(u8 value); -static void post_code(u8 value) -{ - outb(value, 0x80); -} - int main(void) { printk(BIOS_INFO, "RAM init code started\n"); @@ -38,3 +34,9 @@ int main(void) return 0; } + +static void post_code(u8 value) +{ + outb(value, 0x80); +} +