diff options
| author | Ada Christine <adachristine18@gmail.com> | 2022-01-02 16:36:09 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2022-01-02 16:36:09 +0000 |
| commit | 3e522c4976e23acac32e9adee20a6af458e0da5e (patch) | |
| tree | 8c3ea9f405e9f573b43090f58d2c68033b84c6a3 /kc/core/vm_tree.h | |
| parent | 88551ff4da1db1c82adb56cc04e0c872a8e7fd18 (diff) | |
page faults now call up the vm_object for the faulting address
Diffstat (limited to 'kc/core/vm_tree.h')
| -rw-r--r-- | kc/core/vm_tree.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kc/core/vm_tree.h b/kc/core/vm_tree.h index dfceebf..b2a64e2 100644 --- a/kc/core/vm_tree.h +++ b/kc/core/vm_tree.h @@ -49,6 +49,8 @@ struct vm_tree_key size_t size; }; +struct vm_object; + struct vm_tree_node { // red-black binary tree data @@ -57,7 +59,7 @@ struct vm_tree_node enum vm_tree_color color; struct vm_tree_key key; // object that owns this node - void *object; + struct vm_object *object; }; struct vm_tree @@ -89,5 +91,5 @@ struct vm_tree_node *vmn_successor_key( struct vm_tree_node *vmn_min(struct vm_tree_node *node); struct vm_tree_node *vmn_max(struct vm_tree_node *node); -void *vmt_get_object(struct vm_tree *, void *address); +struct vm_object *vmt_get_object(struct vm_tree *, void *address); |
