bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] i386: add io_map_cached


From: Justus Winter
Subject: Re: [PATCH 2/3] i386: add io_map_cached
Date: Tue, 01 Jul 2014 11:37:03 +0200
User-agent: alot/0.3.4

Quoting Samuel Thibault (2014-07-01 11:26:19)
> Justus Winter, le Tue 01 Jul 2014 11:22:38 +0200, a écrit :
> > I don't believe one knows the size in advance.
> 
> In advance, no, but
> 
> > Every acpi table has a header with explicit size information.
> 
> Once you can read this, you can know the size and can remap, can't you?

Sure, that's what the code is doing.  It's a multi-step thing.  Doing
it every time explicitly is cumbersome, that's why I created the
helper function.  Also, I'm not convinced that undoing the mappings is
necessary, as we're shutting down the system.

The proper thing to do is of course to include ACPICA.  This way we
can also use ACPI for hardware discovery aiui.

Justus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]