Changeset 6d9c49a in mainline for generic/include
- Timestamp:
- 2006-03-13T19:39:30Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45d6add
- Parents:
- 78a95d6f
- Location:
- generic/include
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/mm/page.h
r78a95d6f r6d9c49a 33 33 #include <arch/types.h> 34 34 #include <typedefs.h> 35 #include <memstr.h> 35 36 36 37 #define PAGE_CACHEABLE_SHIFT 0 … … 60 61 #define PAGE_GLOBAL (1<<PAGE_GLOBAL_SHIFT) 61 62 63 64 /* TODO - check that userspace is OK, platform specific functions etc */ 65 static inline void copy_to_uspace(void *dst, void *src, count_t cnt) 66 { 67 memcpy(dst, src, cnt); 68 } 69 70 static inline void copy_to_kernel(void *dst, void *src, count_t cnt) 71 { 72 memcpy(dst, src, cnt); 73 } 74 62 75 /** Operations to manipulate page mappings. */ 63 76 struct page_mapping_operations { -
generic/include/proc/task.h
r78a95d6f r6d9c49a 33 33 #include <synch/spinlock.h> 34 34 #include <adt/list.h> 35 #include <ipc/ipc.h> 35 36 36 37 /** Task structure. */ … … 40 41 link_t tasks_link; /**< Link to other tasks within the system. */ 41 42 as_t *as; /**< Address space. */ 43 answerbox_t answerbox; /**< Communication endpoint */ 44 phone_t phones[IPC_MAX_PHONES]; 42 45 }; 43 46 -
generic/include/syscall/syscall.h
r78a95d6f r6d9c49a 30 30 #define __SYSCALL_H__ 31 31 32 #include <typedefs.h>33 34 32 typedef enum { 35 33 SYS_CTL = 0, 36 34 SYS_IO = 1, 35 SYS_IPC_CALL = 2, 36 SYS_IPC_ANSWER = 3, 37 SYS_IPC_WAIT = 4, 37 38 SYSCALL_END 38 39 } syscall_t; 39 40 40 typedef int (*syshandler_t)(); 41 #ifdef KERNEL 41 42 42 extern int sys_ctl(void); 43 extern int sys_io(int fd, const void *buf, size_t count); 43 #include <arch/types.h> 44 #include <typedefs.h> 45 46 typedef __native (*syshandler_t)(); 44 47 45 48 extern syshandler_t syscall_table[SYSCALL_END]; 46 49 47 50 #endif 51 52 #endif
Note:
See TracChangeset
for help on using the changeset viewer.