diff options
author | Neal H. Walfield <neal@gnu.org> | 2009-01-20 04:07:39 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2009-01-20 04:52:36 +0100 |
commit | b58d7bb88e34ef005ce157c08c6eda6ead63e0e9 (patch) | |
tree | 891a13c5ec07d996676625244c9e1d1f9d70ac7b /viengoos | |
parent | c34a6666d6728a52bac82e520691d5f5cfb32663 (diff) |
Correct computation in zalloc code.
2009-01-20 Neal H. Walfield <neal@gnu.org>
* zalloc.c (ZONE_SIZE): Correct computation.
Diffstat (limited to 'viengoos')
-rw-r--r-- | viengoos/ChangeLog | 4 | ||||
-rw-r--r-- | viengoos/zalloc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/viengoos/ChangeLog b/viengoos/ChangeLog index 6b975d8..9a2719a 100644 --- a/viengoos/ChangeLog +++ b/viengoos/ChangeLog @@ -1,5 +1,9 @@ 2009-01-20 Neal H. Walfield <neal@gnu.org> + * zalloc.c (ZONE_SIZE): Correct computation. + +2009-01-20 Neal H. Walfield <neal@gnu.org> + * Makefile.am (viengoos_LDADD): Replace libhurd-btree.a with libhurd-btree-kernel.a. diff --git a/viengoos/zalloc.c b/viengoos/zalloc.c index 8848d16..699eec4 100644 --- a/viengoos/zalloc.c +++ b/viengoos/zalloc.c @@ -94,7 +94,7 @@ struct block /* Given a zone, return its size. */ -#define ZONE_SIZE(x) (1U << ((x) + PAGESIZE_LOG2)) +#define ZONE_SIZE(x) ((uintptr_t) 1 << ((x) + PAGESIZE_LOG2)) /* Number of zones in the system. */ #define ZONES (sizeof (uintptr_t) * 8 - PAGESIZE_LOG2 - 1) |