grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/1] sparc64 - second stage sector corruption


From: Allen Pais
Subject: [PATCH 1/1] sparc64 - second stage sector corruption
Date: Wed, 18 Dec 2013 12:12:18 +0530

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.

Signed-off-by: Bob Picco <address@hidden>
Signed-off-by: Allen Pais <address@hidden>
---
 grub-core/boot/sparc64/ieee1275/boot.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-core/boot/sparc64/ieee1275/boot.S 
b/grub-core/boot/sparc64/ieee1275/boot.S
index efe090e..5073677 100644
--- a/grub-core/boot/sparc64/ieee1275/boot.S
+++ b/grub-core/boot/sparc64/ieee1275/boot.S
@@ -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)
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]