From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VtO03-0000SV-Sn for mharc-grub-devel@gnu.org; Wed, 18 Dec 2013 15:45:47 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtAqI-0006we-Ru for grub-devel@gnu.org; Wed, 18 Dec 2013 01:42:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtAqC-0005Pn-1S for grub-devel@gnu.org; Wed, 18 Dec 2013 01:42:50 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:49028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtAqB-0005Pd-Qg for grub-devel@gnu.org; Wed, 18 Dec 2013 01:42:43 -0500 Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id rBI6gded019204 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 18 Dec 2013 06:42:41 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBI6gbPl023134 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 Dec 2013 06:42:39 GMT Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id rBI6gbBm023124 for ; Wed, 18 Dec 2013 06:42:37 GMT Received: from cryptic.idc.oracle.com (/10.191.210.44) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 17 Dec 2013 22:42:36 -0800 From: Allen Pais To: grub-devel@gnu.org Subject: [PATCH 1/1] sparc64 - second stage sector corruption Date: Wed, 18 Dec 2013 12:12:18 +0530 Message-Id: <1387348938-21617-1-git-send-email-allen.pais@oracle.com> X-Mailer: git-send-email 1.7.10.4 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 X-Mailman-Approved-At: Wed, 18 Dec 2013 15:45:46 -0500 Cc: Bob Picco , Allen Pais X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Dec 2013 06:42:57 -0000 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 Signed-off-by: Allen Pais --- 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