Home
last modified time | relevance | path

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

/DragonOS-0.1.7/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.7/user/libs/libc/src/arch/x86_64/
Dcrti.S5 movq %rsp, %rbp
12 movq %rsp, %rbp
/DragonOS-0.1.7/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) \
Dfork.c309 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()
Dprocess.c65 .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()
Dproc-types.h51 ul rsp; member
/DragonOS-0.1.7/kernel/src/driver/interrupt/8259A/
D8259A.h30 void do_IRQ(struct pt_regs* rsp, ul number);
/DragonOS-0.1.7/kernel/src/debug/traceback/
Dtraceback.c59 if((uint64_t)(rbp) >= current_pcb->thread->rbp || ((uint64_t)rbp<regs->rsp)) in traceback()
/DragonOS-0.1.7/kernel/src/driver/interrupt/apic/
Dapic.c405 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()
Dapic.h265 void do_IRQ(struct pt_regs *rsp, ul number);
/DragonOS-0.1.7/kernel/src/syscall/
Dsyscall.c176 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/
Dsignal.rs708 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/
Dhead.S252 movq head_stack_start(%rip), %rsp
304 movq head_stack_start(%rip), %rsp //rsp的地址
/DragonOS-0.1.7/kernel/src/smp/
Dsmp.c176 current_pcb->thread->rsp = cpu_core_info[current_starting_cpu].stack_start; in smp_ap_start()