Skip to contentSkip to conversation

sparc64 - second stage sector corruption

PATCH New Allen Pais 1 participant 1 message Dec 18, 2013

lore
Share & tools
lore

Allen Pais

author
#0 lore raw

PATCH 1/1 sparc64 - second stage sector corruption

Correct the end of the bootpath property. The OBP property "bootpath" call was clearing kernel_byte which is the second stage boot sector.

The property value for boot_path is also limited in size. It should be larger in size.

---
 grub-core/boot/sparc64/ieee1275/boot.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
grub-core/boot/sparc64/ieee1275/boot.S +1 -1
index efe090e..5073677 100644
@@ -44,8 +44,8 @@ pic_base:
 	. = _start + GRUB_BOOT_MACHINE_BOOT_DEVPATH
 boot_path:
 	. = _start + GRUB_BOOT_MACHINE_KERNEL_BYTE
-kernel_byte:		.xword (2 << 9)
 boot_path_end:
+kernel_byte:		.xword (2 << 9)
 kernel_address:		.word  GRUB_BOOT_MACHINE_KERNEL_ADDR
 #else
 #define boot_path (_start + 512 + SCRATCH_PAD_BOOT_SIZE)
Signature · 1 line
1.7.10.4