[LinuxBIOS] r450 - LinuxBIOSv3/arch/x86

Author: stepan Date: 2007-07-12 15:03:53 +0200 (Thu, 12 Jul 2007) New Revision: 450 Modified: LinuxBIOSv3/arch/x86/stage1.c Log: Ensure correct linking independent from compiler settings Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> Modified: LinuxBIOSv3/arch/x86/stage1.c =================================================================== --- LinuxBIOSv3/arch/x86/stage1.c 2007-07-12 13:01:42 UTC (rev 449) +++ LinuxBIOSv3/arch/x86/stage1.c 2007-07-12 13:03:53 UTC (rev 450) @@ -52,7 +52,11 @@ post_code(0xf2); } -void stage1_main(u32 bist) +/* + * This function is called from assembler code whith its argument on the + * stack. Force the compiler to generate always correct code for this case. + */ +void __attribute__((stdcall)) stage1_main(u32 bist) { int ret; struct mem_file archive, result;
participants (1)
-
svn@openbios.org