[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Add grub_prefix for PowerPC
From: |
Pavel Roskin |
Subject: |
[PATCH] Add grub_prefix for PowerPC |
Date: |
Thu, 28 Aug 2008 21:45:27 -0400 |
ChangeLog:
* kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
grub/cpu/kernel.h. Add start label for consistency with other
platforms. Add grub_prefix immediately after start. Add jump
to the code after grub_prefix.
* include/grub/powerpc/kernel.h: Provide valid values for
GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
Index: kern/powerpc/ieee1275/crt0.S
===================================================================
--- kern/powerpc/ieee1275/crt0.S (revision 1832)
+++ kern/powerpc/ieee1275/crt0.S (working copy)
@@ -17,13 +17,31 @@
* along with GRUB. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <grub/symbol.h>
+#include <grub/cpu/kernel.h>
+
.extern __bss_start
.extern _end
.text
.align 2
- .globl _start
-_start:
+ .globl start, _start
+start:
+_start:
+ b codestart
+
+ . = EXT_C(start) + GRUB_KERNEL_CPU_PREFIX
+
+VARIABLE(grub_prefix)
+ /* to be filled by grub-mkelfimage */
+
+ /*
+ * Leave some breathing room for the prefix.
+ */
+
+ . = EXT_C(start) + GRUB_KERNEL_CPU_DATA_END
+
+codestart:
li 2, 0
li 13, 0
Index: include/grub/powerpc/kernel.h
===================================================================
--- include/grub/powerpc/kernel.h (revision 1832)
+++ include/grub/powerpc/kernel.h (working copy)
@@ -26,8 +26,7 @@
rewrite grub-mkimage to generate valid ELF files. */
#define GRUB_MOD_GAP 0x8000
-/* prefix not supported on powerpc yet. */
-#define GRUB_KERNEL_CPU_PREFIX 0
-#define GRUB_KERNEL_CPU_DATA_END 0
+#define GRUB_KERNEL_CPU_PREFIX 0x4
+#define GRUB_KERNEL_CPU_DATA_END 0x44
#endif
--
Regards,
Pavel Roskin
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] Add grub_prefix for PowerPC,
Pavel Roskin <=