/DragonOS-0.1.7/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.7/user/libs/libc/src/arch/x86_64/ |
D | crti.S | 5 movq %rsp, %rbp 12 movq %rsp, %rbp
|
/DragonOS-0.1.7/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 | fork.c | 309 new_regs->rsp = new_top - (old_top - new_regs->rsp); in process_rewrite_rbp() 347 child_regs->rsp = stack_start; in process_copy_thread() 358 thd->rsp = (uint64_t)child_regs; in process_copy_thread()
|
D | process.c | 65 .rsp = (ul)(initial_proc_union.stack + STACK_SIZE / sizeof(ul)), 375 regs->rsp = current_pcb->mm->stack_start; in process_load_elf_file() 515 regs->rsp = regs->rbp = stack_start_addr; in do_execve() 605 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread() 615 regs = (struct pt_regs *)current_pcb->thread->rsp; in initial_kernel_thread() 622 "jmp do_execve \n\t" ::"D"(current_pcb->thread->rsp), in initial_kernel_thread() 623 … "m"(current_pcb->thread->rsp), "m"(current_pcb->thread->rip), "S"("/bin/shell.elf"), "c"(NULL), in initial_kernel_thread()
|
D | proc-types.h | 51 ul rsp; member
|
/DragonOS-0.1.7/kernel/src/driver/interrupt/8259A/ |
D | 8259A.h | 30 void do_IRQ(struct pt_regs* rsp, ul number);
|
/DragonOS-0.1.7/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.7/kernel/src/driver/interrupt/apic/ |
D | apic.c | 405 void do_IRQ(struct pt_regs *rsp, ul number) in do_IRQ() argument 415 irq->handler(number, irq->parameter, rsp); in do_IRQ() 431 irq->handler(number, irq->parameter, rsp); in do_IRQ() 440 irq->handler(number, irq->parameter, rsp); in do_IRQ()
|
D | apic.h | 265 void do_IRQ(struct pt_regs *rsp, ul number);
|
/DragonOS-0.1.7/kernel/src/syscall/ |
D | syscall.c | 176 return do_fork(regs, 0, regs->rsp, 0); in sys_fork() 180 return do_fork(regs, CLONE_VM | CLONE_FS | CLONE_SIGNAL, regs->rsp, 0); in sys_vfork()
|
/DragonOS-0.1.7/kernel/src/ipc/ |
D | signal.rs | 708 regs.rsp = frame as u64; in setup_frame() 738 let mut rsp: usize = (regs.rsp as usize) - 128 - size; in get_stack() localVariable 740 rsp &= (-(STACK_ALIGN as i64)) as usize; in get_stack() 741 return rsp as *mut sigframe; in get_stack() 1034 let frame = regs.rsp as usize as *mut sigframe; in sys_rt_sigreturn()
|
/DragonOS-0.1.7/kernel/src/ |
D | head.S | 252 movq head_stack_start(%rip), %rsp 304 movq head_stack_start(%rip), %rsp //rsp的地址
|
/DragonOS-0.1.7/kernel/src/smp/ |
D | smp.c | 176 current_pcb->thread->rsp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()
|