Changes in kernel/generic/src/proc/program.c [f8b69a1e:3fcea34] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/program.c
rf8b69a1e r3fcea34 53 53 #include <syscall/copy.h> 54 54 #include <proc/program.h> 55 #include <userspace.h> 55 56 56 57 /** … … 72 73 errno_t program_create(as_t *as, uspace_addr_t entry_addr, char *name, program_t *prg) 73 74 { 74 uspace_arg_t *kernel_uarg = (uspace_arg_t *) 75 malloc(sizeof(uspace_arg_t)); 75 uinit_arg_t *kernel_uarg = malloc(sizeof(uinit_arg_t)); 76 76 if (!kernel_uarg) 77 77 return ENOMEM; … … 104 104 } 105 105 106 kernel_uarg->uspace_entry = entry_addr; 107 kernel_uarg->uspace_stack = virt; 108 kernel_uarg->uspace_stack_size = STACK_SIZE_USER; 109 kernel_uarg->uspace_thread_function = USPACE_NULL; 110 kernel_uarg->uspace_thread_arg = USPACE_NULL; 111 kernel_uarg->uspace_uarg = USPACE_NULL; 106 kernel_uarg->pc = entry_addr; 107 kernel_uarg->sp = arch_get_initial_sp(virt, STACK_SIZE_USER); 112 108 113 109 /*
Note:
See TracChangeset
for help on using the changeset viewer.