l4-hurd
[Top][All Lists]
Advanced

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

Re: wortel problems


From: Johan Rydberg
Subject: Re: wortel problems
Date: Wed, 1 Oct 2003 16:21:34 +0200

Espen Skoglund <address@hidden> wrote:

: You might want to try the version out of the CVS.  This is going to be
: pretty much like the 0.3 release (and yes, it should fix all the
: sigma0 problems).

If you apply the included patch, CVS sigma0 works as 0.2+patches.
By that I mean, it doesn't break directly on requesting (1 << 31),
but breaks on requests > (1 << 22), that it can allocate.


Index: sigma0.cc
===================================================================
RCS file: /public-cvs/pistachio/user/serv/sigma0/sigma0.cc,v
retrieving revision 1.18.2.5
diff -u -p -r1.18.2.5 sigma0.cc
--- sigma0.cc   26 Sep 2003 18:21:22 -0000      1.18.2.5
+++ sigma0.cc   1 Oct 2003 14:18:47 -0000
@@ -505,7 +505,8 @@ L4_Fpage_t memregion_t::allocate (L4_Wor
     L4_Word_t low_a = (low + size - 1) & ~(size-1);
     L4_Fpage_t ret;
 
-    if ((high_a - low_a) < size || (owner != tid && owner != L4_anythread))
+    if (low_a > high_a || (high_a - low_a) < size
+       || (owner != tid && owner != L4_anythread))
     {
        // Allocation failed
        ret = L4_Nilpage;




reply via email to

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