Searched refs:STACK_SIZE (Results 1 – 6 of 6) sorted by relevance
/DragonOS-0.1.2/kernel/src/smp/ |
D | smp.c | 85 … cpu_core_info[current_starting_cpu].stack_start = (uint64_t)kmalloc(STACK_SIZE, 0) + STACK_SIZE; in smp_init() 86 …_core_info[current_starting_cpu].ist_stack_start = (uint64_t)(kmalloc(STACK_SIZE, 0)) + STACK_SIZE; in smp_init() 88 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init() 89 … memset((void *)cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init() 93 …t process_control_block *)(cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE))->cpu_id = in smp_init() 95 …ocess_control_block *)(cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE))->cpu_id = in smp_init()
|
/DragonOS-0.1.2/kernel/src/process/ |
D | process.h | 36 ….reserved0 = 0, .rsp0 = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)), … 37 ….rsp1 = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)), … 38 ….rsp2 = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)), .reserved1 = 0, .ist1 = 0xffff80…
|
D | fork.c | 39 tsk = (struct process_control_block *)kzalloc(STACK_SIZE, 0); in do_fork() 307 uint64_t new_top = ((uint64_t)new_pcb) + STACK_SIZE; in process_rewrite_rbp() 308 uint64_t old_top = (uint64_t)(current_pcb) + STACK_SIZE; in process_rewrite_rbp() 314 if ((uint64_t)*rbp >= old_top || (uint64_t)*rbp < (old_top - STACK_SIZE)) in process_rewrite_rbp() 325 if (unlikely((uint64_t)newVal >= new_top || (uint64_t)newVal < (new_top - STACK_SIZE))) in process_rewrite_rbp() 358 uint32_t size = ((uint64_t)current_pcb) + STACK_SIZE - (uint64_t)(current_regs); in process_copy_thread() 360 child_regs = (struct pt_regs *)(((uint64_t)pcb) + STACK_SIZE - size); in process_copy_thread() 368 child_regs = (struct pt_regs *)((uint64_t)pcb + STACK_SIZE - sizeof(struct pt_regs)); in process_copy_thread() 380 thd->rbp = (uint64_t)pcb + STACK_SIZE; in process_copy_thread()
|
D | proc-types.h | 11 #define STACK_SIZE 32768 macro 136 ul stack[STACK_SIZE / sizeof(ul)];
|
D | process.c | 65 .rbp = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)), 66 .rsp = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)), 503 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread()
|
/DragonOS-0.1.2/kernel/src/ |
D | main.c | 109 uchar *ptr = (uchar *)kzalloc(STACK_SIZE, 0) + STACK_SIZE; in system_initialize() 110 ((struct process_control_block *)(ptr - STACK_SIZE))->cpu_id = 0; in system_initialize()
|