/DragonOS-0.1.8/kernel/src/exception/ |
D | entry.S | 55 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 …]
|
D | trap.c | 16 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/ |
D | crti.S | 5 movq %rsp, %rbp 12 movq %rsp, %rbp
|
/DragonOS-0.1.8/kernel/src/process/ |
D | proc.S | 30 addq $0x20, %rsp 32 addq $0x10, %rsp
|
D | ptrace.h | 29 unsigned long rsp; member
|
D | process.h | 68 … : "=m"(prev->thread->rsp), "=m"(prev->thread->rip) \ 69 … : "m"(next->thread->rsp), "m"(next->thread->rip), "D"(prev), "S"(next) \
|
D | process.c | 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() 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()
|
D | fork.c | 231 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()
|
D | proc-types.h | 51 ul rsp; member
|
/DragonOS-0.1.8/kernel/src/driver/interrupt/8259A/ |
D | 8259A.h | 30 void do_IRQ(struct pt_regs* rsp, ul number);
|
/DragonOS-0.1.8/kernel/src/debug/traceback/ |
D | traceback.c | 59 if((uint64_t)(rbp) >= current_pcb->thread->rbp || ((uint64_t)rbp<regs->rsp)) in traceback()
|
/DragonOS-0.1.8/kernel/src/arch/x86_64/ |
D | syscall.rs | 57 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/ |
D | timekeeping.rs | 239 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/ |
D | apic.c | 410 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()
|
D | apic.h | 264 void do_IRQ(struct pt_regs *rsp, ul number);
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | signal.rs | 663 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/ |
D | head.S | 252 movq head_stack_start(%rip), %rsp 343 movq head_stack_start(%rip), %rsp //rsp的地址
|
/DragonOS-0.1.8/kernel/src/smp/ |
D | smp.c | 187 current_pcb->thread->rsp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()
|