Changeset c98e6ee in mainline for kernel/generic/include
- Timestamp:
- 2008-07-08T16:05:45Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f93f168
- Parents:
- b7f9087
- Location:
- kernel/generic/include
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/lib/elf.h
rb7f9087 rc98e6ee 115 115 #define EE_INCOMPATIBLE 3 /* ELF image is not compatible with current architecture */ 116 116 #define EE_UNSUPPORTED 4 /* Non-supported ELF (e.g. dynamic ELFs) */ 117 #define EE_IRRECOVERABLE 5 117 #define EE_LOADER 5 /* The image is actually a program loader */ 118 #define EE_IRRECOVERABLE 6 118 119 119 120 /** … … 339 340 extern char *elf_error(unsigned int rc); 340 341 342 /* Interpreter string used to recognize the program loader */ 343 #define ELF_INTERP_ZSTR "kernel" 344 #define ELF_INTERP_ZLEN sizeof(ELF_INTERP_ZSTR) 345 341 346 #endif 342 347 -
kernel/generic/include/mm/as.h
rb7f9087 rc98e6ee 270 270 int as_area_share(as_t *src_as, uintptr_t src_base, size_t acc_size, 271 271 as_t *dst_as, uintptr_t dst_base, int dst_flags_mask); 272 extern int as_area_change_flags(as_t *as, int flags, uintptr_t address); 272 273 273 274 extern int as_area_get_flags(as_area_t *area); … … 300 301 extern mem_backend_t phys_backend; 301 302 302 extern unsigned int elf_load(elf_header_t *header, as_t *as); 303 /** 304 * This flags is passed when running the loader, otherwise elf_load() 305 * would return with a EE_LOADER error code. 306 */ 307 #define ELD_F_NONE 0 308 #define ELD_F_LOADER 1 309 310 extern unsigned int elf_load(elf_header_t *header, as_t *as, int flags); 303 311 304 312 /* Address space area related syscalls. */ 305 313 extern unative_t sys_as_area_create(uintptr_t address, size_t size, int flags); 306 314 extern unative_t sys_as_area_resize(uintptr_t address, size_t size, int flags); 315 extern unative_t sys_as_area_change_flags(uintptr_t address, int flags); 307 316 extern unative_t sys_as_area_destroy(uintptr_t address); 308 317 -
kernel/generic/include/proc/task.h
rb7f9087 rc98e6ee 133 133 134 134 extern unative_t sys_task_get_id(task_id_t *uspace_task_id); 135 extern unative_t sys_task_spawn(void *image, size_t size);136 135 137 136 #endif -
kernel/generic/include/proc/thread.h
rb7f9087 rc98e6ee 249 249 extern bool thread_exists(thread_t *t); 250 250 251 extern thread_t *thread_create_program(void *program_addr, char *name);252 253 251 /** Fpu context slab cache. */ 254 252 extern slab_cache_t *fpu_context_slab; -
kernel/generic/include/syscall/syscall.h
rb7f9087 rc98e6ee 45 45 46 46 SYS_TASK_GET_ID, 47 SYS_ TASK_SPAWN,47 SYS_PROGRAM_SPAWN_LOADER, 48 48 49 49 SYS_FUTEX_SLEEP, 50 50 SYS_FUTEX_WAKEUP, 51 SYS_SMC_COHERENCE, 51 52 52 53 SYS_AS_AREA_CREATE, 53 54 SYS_AS_AREA_RESIZE, 55 SYS_AS_AREA_CHANGE_FLAGS, 54 56 SYS_AS_AREA_DESTROY, 55 57
Note:
See TracChangeset
for help on using the changeset viewer.