Changeset 1068f6a in mainline for generic/include/mm/as.h
- Timestamp:
- 2006-05-20T19:32:06Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1982e45
- Parents:
- 9ea6cc5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/mm/as.h
r9ea6cc5 r1068f6a 45 45 #include <typedefs.h> 46 46 #include <synch/spinlock.h> 47 #include <synch/mutex.h> 47 48 #include <adt/list.h> 48 49 #include <adt/btree.h> … … 67 68 #define AS_AREA_ATTR_PARTIAL 1 /* Not fully initialized area. */ 68 69 69 #define AS_PF_FAULT 0 /**< The page fault was not resolved by as p_page_fault(). */70 #define AS_PF_FAULT 0 /**< The page fault was not resolved by as_page_fault(). */ 70 71 #define AS_PF_OK 1 /**< The page fault was resolved by as_page_fault(). */ 71 #define AS_PF_DEFER 2 /**< The page fault was caused by memcpy_from_uspace(). */ 72 #define AS_PF_DEFER 2 /**< The page fault was caused by memcpy_from_uspace() 73 or memcpy_to_uspace(). */ 72 74 73 75 /** Address space area structure. … … 77 79 */ 78 80 struct as_area { 79 SPINLOCK_DECLARE(lock);81 mutex_t lock; 80 82 int flags; /**< Flags related to the memory represented by the address space area. */ 81 83 int attributes; /**< Attributes related to the address space area itself. */ … … 92 94 */ 93 95 struct as { 94 /** Protected by asidlock. Must be acquired before as->lock.*/96 /** Protected by asidlock. */ 95 97 link_t inactive_as_with_asid_link; 96 98 97 SPINLOCK_DECLARE(lock);99 mutex_t lock; 98 100 99 101 /** Number of processors on wich is this address space active. */
Note:
See TracChangeset
for help on using the changeset viewer.