Changeset 1068f6a in mainline for generic/include
- Timestamp:
- 2006-05-20T19:32:06Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c1982e45
- Parents:
- 9ea6cc5
- Location:
- generic/include
- Files:
-
- 3 edited
-
mm/as.h (modified) (4 diffs)
-
synch/mutex.h (modified) (1 diff)
-
typedefs.h (modified) (1 diff)
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. */ -
generic/include/synch/mutex.h
r9ea6cc5 r1068f6a 45 45 #define mutex_lock_timeout(mtx,usec) \ 46 46 _mutex_lock_timeout((mtx),(usec),SYNCH_NON_BLOCKING) 47 47 #define mutex_lock_active(mtx) \ 48 while (mutex_trylock((mtx)) != ESYNCH_OK_ATOMIC) 49 48 50 extern void mutex_initialize(mutex_t *mtx); 49 51 extern int _mutex_lock_timeout(mutex_t *mtx, __u32 usec, int trylock); -
generic/include/typedefs.h
r9ea6cc5 r1068f6a 64 64 typedef struct futex futex_t; 65 65 66 typedef struct chunk chunk_t;67 68 66 typedef struct buddy_system buddy_system_t; 69 67 typedef struct buddy_system_operations buddy_system_operations_t; 70 68 71 typedef enum as_area_type as_area_type_t;72 69 typedef struct as_area as_area_t; 73 70 typedef struct as as_t; 74 71 75 72 typedef struct link link_t; 76 77 typedef char *char_ptr;78 73 79 74 typedef struct the the_t;
Note:
See TracChangeset
for help on using the changeset viewer.
