Changes in kernel/generic/src/proc/program.c [d1e8440:6eef3c4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/program.c
rd1e8440 r6eef3c4 79 79 * Create the stack address space area. 80 80 */ 81 uintptr_t virt = (uintptr_t) -1; 82 uintptr_t bound = USER_ADDRESS_SPACE_END - (STACK_SIZE_USER - 1); 83 84 /* Adjust bound to create space for the desired guard page. */ 85 bound -= PAGE_SIZE; 86 81 uintptr_t virt = USTACK_ADDRESS; 87 82 as_area_t *area = as_area_create(as, 88 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE | AS_AREA_GUARD | 89 AS_AREA_LATE_RESERVE, STACK_SIZE_USER, AS_AREA_ATTR_NONE, 90 &anon_backend, NULL, &virt, bound); 83 AS_AREA_READ | AS_AREA_WRITE | AS_AREA_CACHEABLE, 84 STACK_SIZE, AS_AREA_ATTR_NONE, &anon_backend, NULL, &virt, 0); 91 85 if (!area) { 92 86 task_destroy(prg->task); … … 99 93 kernel_uarg->uspace_entry = (void *) entry_addr; 100 94 kernel_uarg->uspace_stack = (void *) virt; 101 kernel_uarg->uspace_stack_size = STACK_SIZE _USER;95 kernel_uarg->uspace_stack_size = STACK_SIZE; 102 96 kernel_uarg->uspace_thread_function = NULL; 103 97 kernel_uarg->uspace_thread_arg = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.