Ensure correct linking independent from compiler settings

Signed-off-by: Juergen Beisert <juergen@kreuzholzen.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@450 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-07-12 13:03:53 +00:00
commit c221558a4c

View file

@ -52,7 +52,11 @@ static void enable_rom(void)
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;