Home
last modified time | relevance | path

Searched refs:rsp (Results 1 – 18 of 18) sorted by relevance

/DragonOS-0.1.8/kernel/src/exception/
Dentry.S55 addq $0x10, %rsp // 弹出变量FUNC和errcode
69 movq %rsp, %rdi
103 movq ERRCODE(%rsp), %rsi // 把错误码装进rsi,作为函数的第二个参数
104 movq FUNC(%rsp), %rdx
110 movq %rsp, %rdi // 把栈指针装入rdi,作为函数的第一个的参数
123 xchgq %rax, (%rsp) // 把FUNC的地址换入栈中
131 xchgq %rax, (%rsp) // 把FUNC的地址换入栈中
142 xchgq %rax, (%rsp)
150 xchgq %rax, (%rsp) // 把FUNC的地址换入栈中
158 xchgq %rax, (%rsp) // 把FUNC的地址换入栈中
[all …]
Dtrap.c16 regs->rsp, regs->rip, proc_current_cpu_id, current_pcb->pid); in do_divide_error()
27 …tError Code:%#18lx,\tRSP:%#18lx,\tRIP:%#18lx\t CPU:%d, pid:%d\n", error_code, regs->rsp, regs->rip, in do_debug()
40 …nmi(2),\tError Code:%#18lx,\tRSP:%#18lx,\tRIP:%#18lx\t CPU:%d\n", error_code, regs->rsp, regs->rip, in do_nmi()
53 …nt3(3),\tError Code:%#18lx,\tRSP:%#18lx,\tRIP:%#18lx\t CPU:%d\n", error_code, regs->rsp, regs->rip, in do_int3()
66 … ] do_overflow(4),\tError Code:%#18lx,\tRSP:%#18lx,\tRIP:%#18lx\t CPU:%d\n", error_code, regs->rsp, in do_overflow()
77 …nds(5),\tError Code:%#18lx,\tRSP:%#18lx,\tRIP:%#18lx\t CPU:%d\n", error_code, regs->rsp, regs->rip, in do_bounds()
89 regs->rsp, regs->rip, proc_current_cpu_id, current_pcb->pid); in do_undefined_opcode()
99 …liable(7),\tError Code:%#18lx,\tRSP:%#18lx,\tRIP:%#18lx\t CPU:%d, pid=%d\n", error_code, regs->rsp, in do_dev_not_avaliable()
112 …o_double_fault(8),\tError Code:%#18lx,\tRSP:%#18lx,\tRIP:%#18lx\t CPU:%d\n", error_code, regs->rsp, in do_double_fault()
124 regs->rsp, regs->rip, proc_current_cpu_id); in do_coprocessor_segment_overrun()
[all …]
/DragonOS-0.1.8/user/libs/libc/src/arch/x86_64/
Dcrti.S5 movq %rsp, %rbp
12 movq %rsp, %rbp
/DragonOS-0.1.8/kernel/src/process/
Dproc.S30 addq $0x20, %rsp
32 addq $0x10, %rsp
Dptrace.h29 unsigned long rsp; member
Dprocess.h68 … : "=m"(prev->thread->rsp), "=m"(prev->thread->rip) \
69 … : "m"(next->thread->rsp), "m"(next->thread->rip), "D"(prev), "S"(next) \
Dprocess.c66 .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()
216 regs = (struct pt_regs *)current_pcb->thread->rsp; in initial_kernel_thread()
223 "jmp rs_exec_init_process \n\t" ::"D"(current_pcb->thread->rsp), in initial_kernel_thread()
224 "m"(current_pcb->thread->rsp), "m"(current_pcb->thread->rip), "c"(NULL), in initial_kernel_thread()
Dfork.c231 new_regs->rsp = new_top - (old_top - new_regs->rsp); in process_rewrite_rbp()
269 child_regs->rsp = stack_start; in process_copy_thread()
280 thd->rsp = (uint64_t)child_regs; in process_copy_thread()
Dproc-types.h51 ul rsp; member
/DragonOS-0.1.8/kernel/src/driver/interrupt/8259A/
D8259A.h30 void do_IRQ(struct pt_regs* rsp, ul number);
/DragonOS-0.1.8/kernel/src/debug/traceback/
Dtraceback.c59 if((uint64_t)(rbp) >= current_pcb->thread->rbp || ((uint64_t)rbp<regs->rsp)) in traceback()
/DragonOS-0.1.8/kernel/src/arch/x86_64/
Dsyscall.rs57 syscall_return!(do_fork(regs, 0, regs.rsp, 0), regs); in syscall_handler()
64 regs.rsp, in syscall_handler()
246 regs.rsp = user_sp.data() as u64; in tmp_rs_execve()
/DragonOS-0.1.8/kernel/src/time/
Dtimekeeping.rs239 let rsp = unsafe { crate::include::bindings::bindings::get_rsp() } as usize; in update_wall_time() localVariable
240 let _stack_use = align_up(rsp as u64, 32768) - rsp as u64; in update_wall_time()
/DragonOS-0.1.8/kernel/src/driver/interrupt/apic/
Dapic.c410 void do_IRQ(struct pt_regs *rsp, ul number) in do_IRQ() argument
420 irq->handler(number, irq->parameter, rsp); in do_IRQ()
436 irq->handler(number, irq->parameter, rsp); in do_IRQ()
445 irq->handler(number, irq->parameter, rsp); in do_IRQ()
Dapic.h264 void do_IRQ(struct pt_regs *rsp, ul number);
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal.rs663 regs.rsp = frame as u64; in setup_frame()
693 let mut rsp: usize = (regs.rsp as usize) - 128 - size; in get_stack() localVariable
695 rsp &= (-(STACK_ALIGN as i64)) as usize; in get_stack()
696 return rsp as *mut sigframe; in get_stack()
871 let frame = regs.rsp as usize as *mut sigframe; in sys_rt_sigreturn()
/DragonOS-0.1.8/kernel/src/
Dhead.S252 movq head_stack_start(%rip), %rsp
343 movq head_stack_start(%rip), %rsp //rsp的地址
/DragonOS-0.1.8/kernel/src/smp/
Dsmp.c187 current_pcb->thread->rsp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()