Changeset e3c762cd in mainline for generic/include
- Timestamp:
- 2006-05-05T11:59:19Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- de07bcf
- Parents:
- 22cf454d
- Location:
- generic/include
- Files:
-
- 1 added
- 4 edited
-
interrupt.h (modified) (1 diff)
-
mm/as.h (modified) (2 diffs)
-
mm/page.h (modified) (1 diff)
-
proc/thread.h (modified) (1 diff)
-
syscall/copy.h (added)
Legend:
- Unmodified
- Added
- Removed
-
generic/include/interrupt.h
r22cf454d re3c762cd 32 32 #include <arch/interrupt.h> 33 33 #include <typedefs.h> 34 #include <arch/types.h> 34 35 35 36 #ifndef IVT_ITEMS -
generic/include/mm/as.h
r22cf454d re3c762cd 64 64 #define AS_AREA_ATTR_PARTIAL 1 /* Not fully initialized area. */ 65 65 66 #define AS_PF_FAULT 0 /**< The page fault was not resolved by asp_page_fault(). */ 67 #define AS_PF_OK 1 /**< The page fault was resolved by as_page_fault(). */ 68 #define AS_PF_DEFER 2 /**< The page fault was caused by memcpy_from_uspace(). */ 69 66 70 /** Address space area structure. 67 71 * … … 122 126 int as_area_send(task_id_t dst_id, __address base); 123 127 extern void as_set_mapping(as_t *as, __address page, __address frame); 124 extern int as_page_fault(__address page );128 extern int as_page_fault(__address page, istate_t *istate); 125 129 extern void as_switch(as_t *old, as_t *new); 126 130 extern void as_free(as_t *as); -
generic/include/mm/page.h
r22cf454d re3c762cd 61 61 #define PAGE_GLOBAL (1<<PAGE_GLOBAL_SHIFT) 62 62 63 /* TODO - check that userspace is OK, platform specific functions etc */64 static inline void copy_to_uspace(void *dst, void *src, count_t cnt)65 {66 memcpy(dst, src, cnt);67 }68 69 static inline void copy_from_uspace(void *dst, void *src, count_t cnt)70 {71 memcpy(dst, src, cnt);72 }73 74 63 /** Operations to manipulate page mappings. */ 75 64 struct page_mapping_operations { -
generic/include/proc/thread.h
r22cf454d re3c762cd 92 92 volatile int timeout_pending; /**< Flag signalling sleep timeout in progress. */ 93 93 94 /** True if this thread is executing copy_from_uspace(). False otherwise. */ 95 bool in_copy_from_uspace; 96 /** True if this thread is executing copy_to_uspace(). False otherwise. */ 97 bool in_copy_to_uspace; 98 99 94 100 fpu_context_t *saved_fpu_context; 95 101 int fpu_context_exists;
Note:
See TracChangeset
for help on using the changeset viewer.
