diff options
author | mts <mts@cvs.openbsd.org> | 2001-07-11 13:57:55 +0000 |
---|---|---|
committer | mts <mts@cvs.openbsd.org> | 2001-07-11 13:57:55 +0000 |
commit | 63fe2cd01b9c62242c92d0946b5b6196425be44b (patch) | |
tree | 113d468377b3439522855e575d7e1fd5f81a72fb /sys/uvm/uvm_map.c | |
parent | d7388ee9b2143baae78578b5036c965e71ce7b6c (diff) |
need to save hint (verified from current netbsd uvm_map.c) -- need mod
to allow bpf to manage shared address space.
Diffstat (limited to 'sys/uvm/uvm_map.c')
-rw-r--r-- | sys/uvm/uvm_map.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index bb318eb7371..7a817b82903 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.16 2001/06/23 19:24:33 smart Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.17 2001/07/11 13:57:54 mts Exp $ */ /* $NetBSD: uvm_map.c,v 1.68 1999/08/21 02:19:05 thorpej Exp $ */ /* @@ -1057,6 +1057,10 @@ uvm_unmap_remove(map, start, end, entry_list) * that we've nuked. then go do next entry. */ UVMHIST_LOG(maphist, " removed map entry 0x%x", entry, 0, 0,0); + + /* critical! prevents stale hint */ + SAVE_HINT(map, entry->prev); + uvm_map_entry_unlink(map, entry); map->size -= len; entry->next = first_entry; |