Rev 167 | Rev 430 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 167 | Rev 391 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #ifndef __VM_H__ |
29 | #ifndef __VM_H__ |
30 | #define __VM_H__ |
30 | #define __VM_H__ |
31 | 31 | ||
32 | #include <arch/mm/page.h> |
32 | #include <arch/mm/page.h> |
33 | #include <arch/mm/vm.h> |
33 | #include <arch/mm/vm.h> |
- | 34 | #include <arch/mm/asid.h> |
|
34 | #include <arch/types.h> |
35 | #include <arch/types.h> |
35 | #include <typedefs.h> |
36 | #include <typedefs.h> |
36 | #include <synch/spinlock.h> |
37 | #include <synch/spinlock.h> |
37 | #include <list.h> |
38 | #include <list.h> |
38 | 39 | ||
Line 72... | Line 73... | ||
72 | */ |
73 | */ |
73 | struct vm { |
74 | struct vm { |
74 | spinlock_t lock; |
75 | spinlock_t lock; |
75 | link_t vm_area_head; |
76 | link_t vm_area_head; |
76 | pte_t *ptl0; |
77 | pte_t *ptl0; |
- | 78 | asid_t asid; |
|
77 | }; |
79 | }; |
78 | 80 | ||
79 | extern vm_t * vm_create(pte_t *ptl0); |
81 | extern vm_t * vm_create(pte_t *ptl0); |
80 | extern void vm_destroy(vm_t *m); |
82 | extern void vm_destroy(vm_t *m); |
81 | 83 |