Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LaWNB-0004uW-Qu for mharc-grub-devel@gnu.org; Fri, 20 Feb 2009 09:29:01 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaWN9-0004uJ-Oy for grub-devel@gnu.org; Fri, 20 Feb 2009 09:28:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaWN8-0004u3-Nk for grub-devel@gnu.org; Fri, 20 Feb 2009 09:28:58 -0500 Received: from [199.232.76.173] (port=37308 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaWN8-0004u0-HV for grub-devel@gnu.org; Fri, 20 Feb 2009 09:28:58 -0500 Received: from wa-out-1112.google.com ([209.85.146.183]:19637) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaWN8-0006ND-0g for grub-devel@gnu.org; Fri, 20 Feb 2009 09:28:58 -0500 Received: by wa-out-1112.google.com with SMTP id k17so492047waf.26 for ; Fri, 20 Feb 2009 06:28:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=fpQdnaYYSUIQcLIkiUmyV82uce+EVX9zJuM5NTEMTGM=; b=DB/n4c7IsL3wHEjKYvKFXTNT6mAP22iLZLx2oAzgpGG1w8or2E2OaBOORJ+NFYenqI Fc05HNOZbgfRGSlm6tqqSZsBM+g+7jASTej9MHINMYCicsaTc/2RIpx+Xds51LC+9nt8 E2dldcu1SUqTZDbc+M7xqmxslTjc314oQRL4M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=TO0LR3wPeuteMT8Yul5MwAhlSc1t1SJCd8hRfq9YTwRTcOPVkyc8l8Wvt9g+Y670SN Vs1kuieecmCPlqhLPE+i9XFAF9jB1cv4+QtULSwTM2cNsnC+Kt3OojQZRB6jqoeUXyGt KOgImIs3L+xoZXO+iUW8SS/TPC6UY62dUNxhs= MIME-Version: 1.0 Received: by 10.115.54.7 with SMTP id g7mr396800wak.69.1235140136458; Fri, 20 Feb 2009 06:28:56 -0800 (PST) In-Reply-To: References: Date: Sat, 21 Feb 2009 01:28:56 +1100 Message-ID: <48f46e890902200628w20025ec0tc680f64d3e7568b@mail.gmail.com> From: Peter Cros To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=00163645759414da2b04635a7955 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [PATCH] bug fix for x86_64 efi X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2009 14:28:59 -0000 --00163645759414da2b04635a7955 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Tested the patch applied to rev 1996 for grub.efi 64 bit and 32 bit, on Imac81 (4GB ram), MacBookPro41 (4GB and 2GB ram) MacBook21 (i386) with Macosx 10.4 10.5, ubuntu810. All good. 64bit Macs have other ongoing EFI problems with linux kernel initializtion and keyboard. On Fri, Feb 20, 2009 at 2:12 AM, Bean wrote: > Hi, > > This patch contains several important update for x86_64 efi: > > 1, Support memory larger than 2G. > 2, Fix a bug in efi_call_6 that could cause chainloadering osx to fail. > 3, Improve the method to detect frame buffer address and line length > in linux loader. > > 2009-02-19 Bean > > * configure.ac: Check for -mcmodel=large in x86_64 target. > > * include/grub/efi/api.h (efi_call_10): New macro. > (efi_wrap_10): New function. > > * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro. > (GRUB_PE32_REL_BASED_HIGH): Likewise. > (GRUB_PE32_REL_BASED_LOW): Likewise. > (GRUB_PE32_REL_BASED_HIGHLOW): Likewise. > (GRUB_PE32_REL_BASED_HIGHADJ): Likewise. > (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise. > (GRUB_PE32_REL_BASED_SECTION): Likewise. > (GRUB_PE32_REL_BASED_REL): Likewise. > (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise. > (GRUB_PE32_REL_BASED_DIR64): Likewise. > (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise. > > * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation > issue. > > * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix. > (efi_wrap_10): New function. > > * kern/x86_64/efi/startup.S (codestart): Use relative addressing. > > * loader/efi/appleloader.c (devpath_5): Add support for late 2008 > MB/MBP model (NV chipset). > (devdata_devs): Add devpath_5 to the list. > > * load/i386/efi/linux.c (video_base): Remove variable. > (RGB_MASK): New macro. > (RGB_MAGIC): Likewise. > (LINE_MIN): Likewise. > (LINE_MAX): Likewise. > (FBTEST_STEP): Likewise. > (FBTEST_COUNT): Likewise. > (fb_list): New variable. > (grub_find_video_card): Remove function. > (find_framebuf): New function. > (grub_linux_setup_video): Use find_framebuf to get frame buffer and > line length. > > * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation > problem for x86_64. > > -- > Bean > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Cros (pxw) --00163645759414da2b04635a7955 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Tested the patch applied to rev 1996 for grub.efi 64 bit and 32 bit, o= n Imac81 (4GB ram), MacBookPro41 (4GB and 2GB ram)  MacBook21 (i386)
with Macosx 10.4 10.5, ubuntu810.
All good.
64bit Macs have other ongoing EFI problems with linux kernel ini= tializtion and keyboard.


On Fri, Feb 20, 2009 at 2:12 AM, Bean <bean123ch@gmail.com> wrote:
Hi,

This patch contains several important update for x86_64 efi:

1, Support memory larger than 2G.
2, Fix a bug in efi_call_6 that could cause chainloadering osx to fail.
3, Improve the method to detect frame buffer address and line length
in linux loader.

2009-02-19  Bean  <bean= 123ch@gmail.com>

       * configure.ac: Check for -mcmodel=3Dlarge in x86_64 target.

       * include/grub/efi/api.h (efi_call_10): New mac= ro.
       (efi_wrap_10): New function.

       * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_H= IGH): New macro.
       (GRUB_PE32_REL_BASED_HIGH): Likewise.
       (GRUB_PE32_REL_BASED_LOW): Likewise.
       (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
       (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
       (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.        (GRUB_PE32_REL_BASED_SECTION): Likewise.
       (GRUB_PE32_REL_BASED_REL): Likewise.
       (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
       (GRUB_PE32_REL_BASED_DIR64): Likewise.
       (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.

       * kern/x86_64/dl.c (grub_arch_dl_relocate_symbo= ls): Fixed relocation
       issue.

       * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug = fix.
       (efi_wrap_10): New function.

       * kern/x86_64/efi/startup.S (codestart): Use re= lative addressing.

       * loader/efi/appleloader.c (devpath_5): Add sup= port for late 2008
       MB/MBP model (NV chipset).
       (devdata_devs): Add devpath_5 to the list.

       * load/i386/efi/linux.c (video_base): Remove va= riable.
       (RGB_MASK): New macro.
       (RGB_MAGIC): Likewise.
       (LINE_MIN): Likewise.
       (LINE_MAX): Likewise.
       (FBTEST_STEP): Likewise.
       (FBTEST_COUNT): Likewise.
       (fb_list): New variable.
       (grub_find_video_card): Remove function.
       (find_framebuf): New function.
       (grub_linux_setup_video): Use find_framebuf to = get frame buffer and
       line length.

       * util/i386/efi/grub-mkimage.c (grub_reloc_sect= ion): Fix relocation
       problem for x86_64.

--
Bean

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel




--
Cros (pxw)

<= br> --00163645759414da2b04635a7955--