diff options
author | Neal H. Walfield <neal@gnu.org> | 2009-03-22 15:27:52 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2009-03-22 15:27:52 +0100 |
commit | 567d20a68b832df23af48d51c2c843b897ddfda8 (patch) | |
tree | 873f468d07ea17fc02daa616bcabb7fb1e0f5efa | |
parent | 6bef6d3e821dcdd48ec44b5b7bd50a2230e0aadd (diff) |
In memory_add, print the debug output before the assert.
-rw-r--r-- | viengoos/memory.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/viengoos/memory.c b/viengoos/memory.c index 3ff4ca8..b094553 100644 --- a/viengoos/memory.c +++ b/viengoos/memory.c @@ -235,12 +235,12 @@ memory_is_reserved (uintptr_t start, uintptr_t end, void memory_add (uintptr_t start, uintptr_t end) { - assert ((start & (PAGESIZE - 1)) == 0); - assert ((end & (PAGESIZE - 1)) == (PAGESIZE - 1)); - debug (0, "Request to add physical memory 0x%"PRIxPTR"-0x%"PRIxPTR"", start, end); + assert ((start & (PAGESIZE - 1)) == 0); + assert ((end & (PAGESIZE - 1)) == (PAGESIZE - 1)); + if (start == 0) /* Just drop the page at address 0. */ { |