Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/smp/
Dsmp.c102 … cpu_core_info[current_starting_cpu].stack_start = (uint64_t)kmalloc(STACK_SIZE, 0) + STACK_SIZE; in smp_init()
103 …_core_info[current_starting_cpu].ist_stack_start = (uint64_t)(kmalloc(STACK_SIZE, 0)) + STACK_SIZE; in smp_init()
105 memset((void *)cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
106 … memset((void *)cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE, 0, STACK_SIZE); in smp_init()
110 …t process_control_block *)(cpu_core_info[current_starting_cpu].stack_start - STACK_SIZE))->cpu_id = in smp_init()
112 …ocess_control_block *)(cpu_core_info[current_starting_cpu].ist_stack_start - STACK_SIZE))->cpu_id = in smp_init()
/DragonOS-0.1.8/kernel/src/process/
Dfork.c42 tsk = (struct process_control_block *)kzalloc(STACK_SIZE, 0); in do_fork()
204 uint64_t new_top = ((uint64_t)new_pcb) + STACK_SIZE; in process_rewrite_rbp()
205 uint64_t old_top = (uint64_t)(current_pcb) + STACK_SIZE; in process_rewrite_rbp()
211 if ((uint64_t)*rbp >= old_top || (uint64_t)*rbp < (old_top - STACK_SIZE)) in process_rewrite_rbp()
222 if (unlikely((uint64_t)newVal >= new_top || (uint64_t)newVal < (new_top - STACK_SIZE))) in process_rewrite_rbp()
255 uint32_t size = ((uint64_t)current_pcb) + STACK_SIZE - (uint64_t)(current_regs); in process_copy_thread()
257 child_regs = (struct pt_regs *)(((uint64_t)pcb) + STACK_SIZE - size); in process_copy_thread()
266 child_regs = (struct pt_regs *)((uint64_t)pcb + STACK_SIZE - sizeof(struct pt_regs)); in process_copy_thread()
277 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
146 ul stack[STACK_SIZE / sizeof(ul)];
Dprocess.c65 .rbp = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)),
66 .rsp = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)),
206 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread()
/DragonOS-0.1.8/kernel/src/
Dmain.c107 uchar *ptr = (uchar *)kzalloc(STACK_SIZE, 0) + STACK_SIZE; in system_initialize()
108 ((struct process_control_block *)(ptr - STACK_SIZE))->cpu_id = 0; in system_initialize()