Home
last modified time | relevance | path

Searched refs:STACK_SIZE (Results 1 – 6 of 6) sorted by relevance

/DragonOS-0.1.5/kernel/src/smp/
Dsmp.c91 … cpu_core_info[current_starting_cpu].stack_start = (uint64_t)kmalloc(STACK_SIZE, 0) + STACK_SIZE; in smp_init()
92 …_core_info[current_starting_cpu].ist_stack_start = (uint64_t)(kmalloc(STACK_SIZE, 0)) + STACK_SIZE; in smp_init()
94 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
95 … memset((void *)cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
99 …t process_control_block *)(cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE))->cpu_id = in smp_init()
101 …ocess_control_block *)(cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE))->cpu_id = in smp_init()
/DragonOS-0.1.5/kernel/src/process/
Dfork.c40 tsk = (struct process_control_block *)kzalloc(STACK_SIZE, 0); in do_fork()
282 uint64_t new_top = ((uint64_t)new_pcb) + STACK_SIZE; in process_rewrite_rbp()
283 uint64_t old_top = (uint64_t)(current_pcb) + STACK_SIZE; in process_rewrite_rbp()
289 if ((uint64_t)*rbp >= old_top || (uint64_t)*rbp < (old_top - STACK_SIZE)) in process_rewrite_rbp()
300 if (unlikely((uint64_t)newVal >= new_top || (uint64_t)newVal < (new_top - STACK_SIZE))) in process_rewrite_rbp()
333 uint32_t size = ((uint64_t)current_pcb) + STACK_SIZE - (uint64_t)(current_regs); in process_copy_thread()
335 child_regs = (struct pt_regs *)(((uint64_t)pcb) + STACK_SIZE - size); in process_copy_thread()
343 child_regs = (struct pt_regs *)((uint64_t)pcb + STACK_SIZE - sizeof(struct pt_regs)); in process_copy_thread()
355 thd->rbp = (uint64_t)pcb + STACK_SIZE; in process_copy_thread()
Dprocess.h36 ….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…
Dproc-types.h12 #define STACK_SIZE 32768 macro
144 ul stack[STACK_SIZE / sizeof(ul)];
Dprocess.c62 .rbp = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)),
63 .rsp = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)),
588 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread()
/DragonOS-0.1.5/kernel/src/
Dmain.c102 uchar *ptr = (uchar *)kzalloc(STACK_SIZE, 0) + STACK_SIZE; in system_initialize()
103 ((struct process_control_block *)(ptr - STACK_SIZE))->cpu_id = 0; in system_initialize()