Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LuCkT-0000s4-01 for mharc-grub-devel@gnu.org; Wed, 15 Apr 2009 17:34:25 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LuCkQ-0000oK-QB for grub-devel@gnu.org; Wed, 15 Apr 2009 17:34:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LuCkL-0000hQ-O3 for grub-devel@gnu.org; Wed, 15 Apr 2009 17:34:21 -0400 Received: from [199.232.76.173] (port=45557 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LuCkL-0000h7-Fp for grub-devel@gnu.org; Wed, 15 Apr 2009 17:34:17 -0400 Received: from io.pong.be ([208.94.48.42]:39867) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LuCkL-0007f5-6n for grub-devel@gnu.org; Wed, 15 Apr 2009 17:34:17 -0400 Received: from terminus-est.gnu.org ([66.92.78.210]:57771 helo=countzero.vandewege.net) by io.pong.be with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1LuCkK-0002jJ-HR for grub-devel@gnu.org; Wed, 15 Apr 2009 17:34:16 -0400 Date: Wed, 15 Apr 2009 17:34:16 -0400 From: Ward Vandewege To: The development of GRUB 2 Message-ID: <20090415213416.GA27790@localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-URL: http://pong.be/ User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by io.pong.be: Error: This connection is not (no longer?) in the cache. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: r2074 broke ata module 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: Wed, 15 Apr 2009 21:34:23 -0000 Hi there, I tried to use the ata module today in combination with grub2's coreboot code, but found that it broke in r2074, specifically by this hunk: ------------------------------------------------------------------------ --- include/grub/pci.h (revision 2073) +++ include/grub/pci.h (working copy) @@ -36,8 +36,8 @@ #define GRUB_PCI_ADDR_IO_MASK ~0x03 typedef grub_uint32_t grub_pci_id_t; -typedef int (*grub_pci_iteratefunc_t) (int bus, int device, int func, - grub_pci_id_t pciid); +typedef int NESTED_FUNC_ATTR (*grub_pci_iteratefunc_t) + (int bus, int device, int func, grub_pci_id_t pciid); typedef grub_uint32_t grub_pci_address_t; grub_pci_address_t EXPORT_FUNC(grub_pci_make_address) (int bus, int device, ------------------------------------------------------------------------ Reverting that hunk fixes ata for me. The symptom of a broken ata module is that it does not see any ATA disks. I'm testing on qemu, and start qemu like this: qemu -m 1024 -serial stdio -L qemu-cbv2-grub2/ -hda path-to-image Up to r2073, that image shows up as ata0, from r2074 it's simply not detected. Thoughts? Thanks, Ward.