diff options
author | neal <neal> | 2007-11-22 16:01:52 +0000 |
---|---|---|
committer | neal <neal> | 2007-11-22 16:01:52 +0000 |
commit | 6445f7bf5bf8e97e653655ae74fbde26610c42ed (patch) | |
tree | 288a9c355bbad58a649af4bd3f485bd7c589fdc1 /libhurd-mm/exceptions.c | |
parent | 89fbedd456ab281fd697b4eca2ae3e2e0c744dac (diff) |
libhurd-mm/
2007-11-22 Neal H. Walfield <neal@gnu.org>
* storage.h (struct storage): New struct.
(storage_alloc): Return a struct storage, not an addr. Update all
callers.
* storage.c (struct storage_desc): Remove field shadow. Add field
cap.
(shadow_setup): Save the cap.
(storage_alloc): Return a struct storage, not an addr.
(storage_free): Correctly free the shadow if not used. Update
STORAGE->CAP to reflect that the folio has been removed.
* capalloc.c (struct cappage_desc): Add field cap.
(capalloc): Stash CAP. When allocating a cappage, allocate a
shadow object.
(capfree): Really free CAPPAGE if there is another page available.
If freeing CAPPAGE, unlink DESC and update DESC->CAP to reflect
that the page has been deallocated, deallocate the shadow, and
deallocate CAPPAGE.
* exceptions.c (exception_thread): Print IP when a fault cannot be
resolved.
* mmap.c (mmap): Cast addr to a uintptr_t to elide warning.
ruth/
2007-11-22 Neal H. Walfield <neal@gnu.org>
* ruth.c (main): Update uses of stroage_alloc to its new
interface.
Diffstat (limited to 'libhurd-mm/exceptions.c')
-rw-r--r-- | libhurd-mm/exceptions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libhurd-mm/exceptions.c b/libhurd-mm/exceptions.c index 32e9361..ee0fcf3 100644 --- a/libhurd-mm/exceptions.c +++ b/libhurd-mm/exceptions.c @@ -106,8 +106,8 @@ exception_thread (void) l4_start (hurd_main_thread (l4_myself ())); else { - debug (1, "Failed to handle fault at " ADDR_FMT, - ADDR_PRINTF (fault)); + debug (1, "Failed to handle fault at " ADDR_FMT " (ip=%x)", + ADDR_PRINTF (fault), ip); /* XXX: Should raise SIGSEGV. */ } |