Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LMJ8u-0003rp-7Q for mharc-grub-devel@gnu.org; Mon, 12 Jan 2009 04:31:32 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMJ8r-0003ri-Mi for grub-devel@gnu.org; Mon, 12 Jan 2009 04:31:30 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMJ8p-0003rR-64 for grub-devel@gnu.org; Mon, 12 Jan 2009 04:31:28 -0500 Received: from [199.232.76.173] (port=34810 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMJ8o-0003rO-Tj for grub-devel@gnu.org; Mon, 12 Jan 2009 04:31:26 -0500 Received: from wa-out-1112.google.com ([209.85.146.180]:4183) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMJ8n-0006As-VH for grub-devel@gnu.org; Mon, 12 Jan 2009 04:31:26 -0500 Received: by wa-out-1112.google.com with SMTP id j32so6057362waf.26 for ; Mon, 12 Jan 2009 01:31:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Kb/8pbllaNywpC0VTxLkOCjLPjlTVGlcbjYhlMHs5s4=; b=mov/z0F4u9JDwd+bHxe8hyaE8kwZd5fkHJ6XYiprFw2QBUwap5fnLVw1xNSV5IjD6E dC0fKsNMSJGt3tRkFoZHaXWMh9HggZln+uNUUcyl//WE8qATxLaOkH4KCV0HwiW6OwBO PtbZ8JZoFtV8G2zCRVZwFE26NGX0gGR9IiYQc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Lwyi6TNg43AbZbFCnSaNHMAqheLMyUrdnzLjlbWATfoMGq2+eFNz9Aisc7rgrHyW01 NmTXts3Hp6vvUKUqaU5tL82jCeoD4phwX/0xsgwlT47griz7ILBQ0SCFyH0F4O8WQSiA YFoNO9fb5ju1XUv0dXKsXHuNujuPnxnNEoNew= Received: by 10.114.168.1 with SMTP id q1mr18920785wae.152.1231752678381; Mon, 12 Jan 2009 01:31:18 -0800 (PST) Received: by 10.114.255.17 with HTTP; Mon, 12 Jan 2009 01:31:18 -0800 (PST) Message-ID: Date: Mon, 12 Jan 2009 17:31:18 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <48f46e890901120040y66fb0d9es65d8d564a967c78a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <90cb5db20901061342x6c517037u26f50ef7e6bfb36c@mail.gmail.com> <48f46e890901080402g678703a9xcd3261d16ec45427@mail.gmail.com> <48f46e890901101844j5563ad85w9d9d60ab782590c4@mail.gmail.com> <48f46e890901110800q3903b09u271f61a5d5a9392a@mail.gmail.com> <48f46e890901120040y66fb0d9es65d8d564a967c78a@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: EFI Boot on MacPro 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: Mon, 12 Jan 2009 09:31:30 -0000 On Mon, Jan 12, 2009 at 4:40 PM, peter cros wrote: > > I tried your 64bit grub.efi, same result - hangs at start (on current > imac8,1). > I wonder if you have tested on the current MacBook or MacBook Pro, perhaps > Apple have made another change. Also I dont have any info on previous Imac > models. > > I was able to get a return via grub_main() only by excluding both of the > movq lines in the code before the call. Either one hangs it. > > Looks to be a problem with grub_efi_image_handle and grub_efi_system_table? > ------------------- > kern/x86_64/efi/startup.S > > codestart: > call EXT_C(grub_main) > ret > - movq %rcx, EXT_C(grub_efi_image_handle) > - movq %rdx, EXT_C(grub_efi_system_table) > ----------------- > kern/main.c > > void > grub_main (void) > { > return; > } > --------------------- > > Is there anything else I can try? Hi, I have tested it on my macbook (brought last year) and it works without issue. I don't know about later modals, but they shouldn't be too different. Anyway, this looks like a memory problem, perhaps you can define some global variable in startup.S and main.c, and test if it halts when writing to it from within the same file. BTW, is refit working ok ? -- Bean