l4-hurd
[Top][All Lists]
Advanced

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

Re: wortel problems


From: Marcus Brinkmann
Subject: Re: wortel problems
Date: Wed, 1 Oct 2003 16:40:45 +0200
User-agent: Mutt/1.5.4i

On Wed, Oct 01, 2003 at 02:10:35PM +0200, Johan Rydberg wrote:
> : Is this causing a panic on ppc, or does it just not work?   We can ignore
> : any failure (return value l4_nilpag0e) here.
> 
> It triggers the following panic in sigma0_get_fpage:
> 
>     panic ("%s: sigma0 rejected mapping", __func__);
> 
> That's why I just commented it out.  

What we need to do is walk the list of memdescs and record if there is
conventional memory at 0.

exists = 0;
for each memdesc;
  if memdesc->start == 0 then
    exists = (memdesc->type == conventional memory);

You must walk all memdescs, as later ones override earlier ones.

It's sufficient to check start here as only the first fpage is needed, and 0
is the lowest possible address (memdesc don't wrap around -1 :)

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    address@hidden
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
address@hidden
http://www.marcus-brinkmann.de/




reply via email to

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