stack 98 include/sys/prex.h int thread_load(thread_t t, void (*entry)(void), void *stack); stack 479 sys/kern/task.c void *stack, *sp; stack 491 sys/kern/task.c if ((error = vm_load(task->map, mod, &stack)) != 0) stack 508 sys/kern/task.c sp = (char *)stack + DFLSTKSZ - (sizeof(int) * 3); stack 167 sys/kern/thread.c thread_load(thread_t t, void (*entry)(void), void *stack) stack 173 sys/kern/thread.c if (stack != NULL && !user_area(stack)) stack 189 sys/kern/thread.c if (stack != NULL) stack 190 sys/kern/thread.c context_set(&t->ctx, CTX_USTACK, (register_t)stack); stack 414 sys/kern/thread.c void *stack; stack 419 sys/kern/thread.c if ((stack = kmem_alloc(KSTACKSZ)) == NULL) { stack 425 sys/kern/thread.c t->kstack = stack; stack 578 sys/kern/thread.c void *stack; stack 583 sys/kern/thread.c if ((stack = kmem_alloc(KSTACKSZ)) == NULL) stack 586 sys/kern/thread.c memset(stack, 0, KSTACKSZ); stack 587 sys/kern/thread.c sp = (vaddr_t)stack + KSTACKSZ; stack 590 sys/kern/thread.c idle_thread.kstack = stack; stack 674 sys/mem/vm.c vm_load(vm_map_t map, struct module *mod, void **stack) stack 718 sys/mem/vm.c *stack = (void *)USRSTACK; stack 719 sys/mem/vm.c error = do_allocate(map, stack, DFLSTKSZ, 0); stack 454 sys/mem/vm_nommu.c vm_load(vm_map_t map, struct module *mod, void **stack) stack 485 sys/mem/vm_nommu.c return do_allocate(map, stack, DFLSTKSZ, 1); stack 47 usr/sample/balls/balls.c static char stack[NBALLS][STACKLEN]; stack 50 usr/sample/balls/balls.c thread_run(void (*start)(void), char *stack) stack 56 usr/sample/balls/balls.c if (thread_load(t, start, stack) != 0) stack 132 usr/sample/balls/balls.c if (thread_run(move_ball, stack[i]+STACKLEN) == 0) stack 61 usr/sample/bench/bench.c char stack[16]; stack 89 usr/sample/bench/bench.c if (thread_load(thread[i], null_thread, &stack) != 0) stack 48 usr/sample/ipc/ipc.c static char stack[1024]; stack 54 usr/sample/ipc/ipc.c start_client(void (*func)(void), char *stack) stack 68 usr/sample/ipc/ipc.c if (thread_load(t, func, stack) != 0) stack 149 usr/sample/ipc/ipc.c if (start_client(client_task, stack+1024) == 0) stack 62 usr/sample/mutex/mutex.c static char stack[3][1024]; stack 82 usr/sample/mutex/mutex.c thread_run(void (*start)(void), void *stack) stack 89 usr/sample/mutex/mutex.c if (thread_load(t, start, stack) != 0) stack 236 usr/sample/mutex/mutex.c th_1 = thread_run(thread_1, stack[0]+1024); stack 239 usr/sample/mutex/mutex.c th_2 = thread_run(thread_2, stack[1]+1024); stack 242 usr/sample/mutex/mutex.c th_3 = thread_run(thread_3, stack[2]+1024); stack 40 usr/sample/sem/sem.c thread_run(void (*start)(void), void *stack) stack 47 usr/sample/sem/sem.c if (thread_load(t, start, stack) != 0) stack 92 usr/sample/sem/sem.c static char stack[10][1024]; stack 111 usr/sample/sem/sem.c thread_run(new_thread, stack[i]+1024); stack 46 usr/sample/task/task.c char *stack; stack 50 usr/sample/task/task.c stack = malloc(1024); stack 57 usr/sample/task/task.c if (thread_load(t, func, stack + 1024) != 0) stack 46 usr/sample/thread/thread.c static char stack[3][1024]; stack 52 usr/sample/thread/thread.c thread_run(void (*start)(void), void *stack) stack 59 usr/sample/thread/thread.c if (thread_load(t, start, stack) != 0) stack 145 usr/sample/thread/thread.c thread_run(thread_A, stack[0]+1024); stack 146 usr/sample/thread/thread.c thread_run(thread_B, stack[1]+1024); stack 147 usr/sample/thread/thread.c thread_run(thread_C, stack[2]+1024); stack 78 usr/server/exec/exec_execve.c void *stack, *sp; stack 178 usr/server/exec/exec_execve.c error = vm_allocate(new_task, &stack, DFLSTKSZ, 1); stack 183 usr/server/exec/exec_execve.c if ((error = build_args(new_task, stack, exec.path, msg, stack 200 usr/server/exec/exec_execve.c notify_server(old_task, new_task, stack); stack 216 usr/server/exec/exec_execve.c vm_free(new_task, stack); stack 314 usr/server/exec/exec_execve.c build_args(task_t task, void *stack, char *path, struct exec_msg *msg, stack 332 usr/server/exec/exec_execve.c error = vm_map(task, stack, DFLSTKSZ, (void *)&mapped); stack 388 usr/server/exec/exec_execve.c argv[0] = (char *)((u_long)stack + (u_long)file - mapped); stack 391 usr/server/exec/exec_execve.c argv[i] = (char *)((u_long)stack + (arg_top - mapped)); stack 397 usr/server/exec/exec_execve.c envp[i] = (char *)((u_long)stack + (arg_top - mapped)); stack 402 usr/server/exec/exec_execve.c *new_sp = (void *)((u_long)stack + (sp - mapped)); stack 412 usr/server/exec/exec_execve.c notify_server(task_t org_task, task_t new_task, void *stack) stack 437 usr/server/exec/exec_execve.c m.data[2] = (int)stack; stack 949 usr/server/fs/vfs/main.c void *stack, *sp; stack 955 usr/server/fs/vfs/main.c if ((error = vm_allocate(self, &stack, DFLSTKSZ, 1)) != 0) stack 958 usr/server/fs/vfs/main.c sp = (void *)((u_long)stack + DFLSTKSZ - sizeof(u_long) * 3); stack 270 usr/server/pow/pow.c void *stack, *sp; stack 276 usr/server/pow/pow.c if ((error = vm_allocate(self, &stack, DFLSTKSZ, 1)) != 0) stack 279 usr/server/pow/pow.c sp = (void *)((u_long)stack + DFLSTKSZ - sizeof(u_long) * 3); stack 180 usr/server/proc/proc_fork.c void *stack; stack 187 usr/server/proc/proc_fork.c if (vm_allocate(p->p_task, &stack, DFLSTKSZ, 1) != 0) { stack 192 usr/server/proc/proc_fork.c memcpy(stack, p->p_stackbase, DFLSTKSZ); stack 193 usr/server/proc/proc_fork.c p->p_stacksaved = stack; stack 53 usr/test/deadlock/deadlock.c static char stack[2][1024]; stack 58 usr/test/deadlock/deadlock.c thread_run(void (*start)(void), void *stack) stack 67 usr/test/deadlock/deadlock.c error = thread_load(t, start, stack); stack 161 usr/test/deadlock/deadlock.c th_1 = thread_run(thread_1, stack[0]+1024); stack 164 usr/test/deadlock/deadlock.c th_2 = thread_run(thread_2, stack[1]+1024); stack 38 usr/test/ipc/ipc.c static char stack[1024]; stack 44 usr/test/ipc/ipc.c thread_run(void (*start)(void), void *stack) stack 53 usr/test/ipc/ipc.c error = thread_load(t, start, stack); stack 134 usr/test/ipc/ipc.c error = thread_run(send_thread, stack + 1024); stack 40 usr/test/ipc_mt/ipc_mt.c static char stack[NR_THREADS][1024]; stack 46 usr/test/ipc_mt/ipc_mt.c thread_run(void (*start)(void), void *stack) stack 55 usr/test/ipc_mt/ipc_mt.c error = thread_load(t, start, stack); stack 125 usr/test/ipc_mt/ipc_mt.c error = thread_run(receive_thread, stack[i] + 1024); stack 40 usr/test/task/task.c static char stack[NR_THREADS][1024]; stack 87 usr/test/task/task.c error = thread_load(t, test_thread, stack[i]+1024); stack 37 usr/test/thread/thread.c static char stack[1024]; stack 40 usr/test/thread/thread.c thread_run(void (*start)(void), char *stack) stack 48 usr/test/thread/thread.c if ((error = thread_load(t, start, stack)) != 0) stack 79 usr/test/thread/thread.c t = thread_run(test_thread, stack+1024);