+2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
+ so it doesn't land in the middle of loaded image.
+
2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
* configure.ac: Move all warning options that may be absent in
boot_path_end:
kernel_address: .word GRUB_BOOT_MACHINE_KERNEL_ADDR
#else
-#define boot_path (_start + 512)
+#define boot_path (_start + 512 + SCRATCH_PAD_BOOT_SIZE)
#define boot_path_end (_start + 1024)
#include <grub/offsets.h>
boot_continue:
mov %o7, PIC_REG /* PIC base */
+#ifndef CDBOOT
sethi %hi(SCRATCH_PAD_BOOT), %l1 /* OF argument slots */
+#else
+ GET_ABS(_start + 512, %l1) /* OF argument slots */
+#endif
/* Find the /chosen node so we can fetch the stdout handle,
* and thus perform console output.
#define SCRATCH_PAD_BOOT 0x5000
#define SCRATCH_PAD_DISKBOOT 0x4000
+#define SCRATCH_PAD_BOOT_SIZE 0x110
#define GET_ABS(symbol, reg) \
add PIC_REG, (symbol - pic_base), reg