PowerPC changes provided by Pavel Roskin.
* kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
* kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
don't rely on cmain() doing it.
* kern/i386/ieee1275/startup.S (_start): Store %eax in
grub_ieee1275_entry_fn, don't rely on cmain() doing it.
+2008-01-19 Robert Millan <rmh@aybabtu.com>
+
+ PowerPC changes provided by Pavel Roskin.
+
+ * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
+ * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
+ don't rely on cmain() doing it.
+ * kern/i386/ieee1275/startup.S (_start): Store %eax in
+ grub_ieee1275_entry_fn, don't rely on cmain() doing it.
+
2008-01-16 Robert Millan <rmh@aybabtu.com>
* include/grub/i386/linuxbios/memory.h
start:
_start:
- movl %eax, %ecx
+ movl %eax, EXT_C(grub_ieee1275_entry_fn)
jmp EXT_C(cmain)
/* cmain.c - Startup code for the PowerPC. */
/*
* GRUB -- GRand Unified Bootloader
- * Copyright (C) 2003,2004,2005,2006,2007 Free Software Foundation, Inc.
+ * Copyright (C) 2003,2004,2005,2006,2007,2008 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
}
}
-void cmain (uint32_t r3, uint32_t r4, uint32_t r5);
+void cmain (void);
void
-cmain (UNUSED uint32_t r3, UNUSED uint32_t r4, uint32_t r5)
+cmain (void)
{
- grub_ieee1275_entry_fn = (int (*)(void *)) r5;
-
grub_ieee1275_finddevice ("/chosen", &grub_ieee1275_chosen);
grub_ieee1275_find_options ();
/* crt0.S - Startup code for the PowerPC. */
/*
* GRUB -- GRand Unified Bootloader
- * Copyright (C) 2003,2004,2005,2007 Free Software Foundation, Inc.
+ * Copyright (C) 2003,2004,2005,2007,2008 Free Software Foundation, Inc.
*
* GRUB is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
2: stwu 2, 4(6) /* We know r2 is already 0 from above. */
bdnz 2b
+ /* Store r5 in grub_ieee1275_entry_fn. */
+ lis 9, grub_ieee1275_entry_fn@ha
+ stw 5, grub_ieee1275_entry_fn@l(9)
+
bl cmain
1: b 1b