summaryrefslogtreecommitdiff
path: root/vm/vm_object.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-04-01 14:01:14 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-28 15:48:05 +0200
commit51d95f2e41553890121a611852594ca4a74eb53e (patch)
treeec9ba152584e53c935c4841e80c1c7998fe86b4c /vm/vm_object.h
parent78487aa5a834d0a5e8e0c6c5490e3bce26e8756d (diff)
XXX pmm from x15, userspace crashes soon
Diffstat (limited to 'vm/vm_object.h')
-rw-r--r--vm/vm_object.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vm/vm_object.h b/vm/vm_object.h
index 01ce4ad..5805a58 100644
--- a/vm/vm_object.h
+++ b/vm/vm_object.h
@@ -46,6 +46,7 @@
#include <kern/assert.h>
#include <kern/debug.h>
#include <kern/macros.h>
+#include <kern/rdxtree.h>
#include <vm/pmap.h>
#include <ipc/ipc_types.h>
@@ -62,7 +63,8 @@ typedef struct ipc_port * pager_request_t;
*/
struct vm_object {
- queue_chain_t memq; /* Resident memory */
+ /* Resident memory indexed by offset. Protected by LOCK. */
+ struct rdxtree memt;
struct lock Lock; /* Synchronization */
#if VM_OBJECT_DEBUG
thread_t LockHolder; /* Thread holding Lock */