On Wed, Jan 30, 2008 at 11:17:49PM +0100, Marco Gerards wrote:
> >> IO addresses are Intel only, AFAIK.  Almost all architectures have
> >> mmapped IO.  It's really arch specific.
> >
> > Are you sure that makes grub_inl / grub_outl arch-specific ?  They can't be
> > implemented as wrappers for direct memory access?
> 
> No, AFAIK that is not possible.  However, PCI gives you the mmapped IO
> addresses we can use, for example for the ATA driver.

Why not?

What's wrong with:

grub_uint32_t
grub_inl (grub_uint32_t *addr)
{
  return *addr;
}

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)


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

Reply via email to