Home
last modified time | relevance | path

Searched refs:pt_regs (Results 1 – 25 of 34) sorted by relevance

12

/DragonOS-0.1.2/kernel/src/syscall/
Dsyscall.h13 typedef unsigned long (*system_call_t)(struct pt_regs *regs);
45 ul system_call_not_exists(struct pt_regs *regs);
58 ul sys_printf(struct pt_regs *regs);
69 uint64_t sys_brk(struct pt_regs *regs);
77 uint64_t sys_sbrk(struct pt_regs *regs);
86 uint64_t sys_mkdir(struct pt_regs *regs);
95 uint64_t sys_pipe(struct pt_regs *regs);
97 ul sys_ahci_end_req(struct pt_regs *regs);
100 void do_syscall_int(struct pt_regs *regs, unsigned long error_code);
Dsyscall.c18 extern uint64_t sys_clock(struct pt_regs *regs);
19 extern uint64_t sys_mstat(struct pt_regs *regs);
20 extern uint64_t sys_open(struct pt_regs *regs);
21 extern uint64_t sys_unlink_at(struct pt_regs *regs);
22 extern uint64_t sys_kill(struct pt_regs *regs);
23 extern uint64_t sys_sigaction(struct pt_regs * regs);
24 extern uint64_t sys_rt_sigreturn(struct pt_regs * regs);
37 ul system_call_not_exists(struct pt_regs *regs) in system_call_not_exists()
56 ul system_call_function(struct pt_regs *regs) in system_call_function()
118 ul sys_put_string(struct pt_regs *regs) in sys_put_string()
[all …]
/DragonOS-0.1.2/kernel/src/exception/
Dtrap.c12 void do_divide_error(struct pt_regs *regs, unsigned long error_code) in do_divide_error()
23 void do_debug(struct pt_regs *regs, unsigned long error_code) in do_debug()
35 void do_nmi(struct pt_regs *regs, unsigned long error_code) in do_nmi()
48 void do_int3(struct pt_regs *regs, unsigned long error_code) in do_int3()
61 void do_overflow(struct pt_regs *regs, unsigned long error_code) in do_overflow()
74 void do_bounds(struct pt_regs *regs, unsigned long error_code) in do_bounds()
85 void do_undefined_opcode(struct pt_regs *regs, unsigned long error_code) in do_undefined_opcode()
96 void do_dev_not_avaliable(struct pt_regs *regs, unsigned long error_code) in do_dev_not_avaliable()
107 void do_double_fault(struct pt_regs *regs, unsigned long error_code) in do_double_fault()
120 void do_coprocessor_segment_overrun(struct pt_regs *regs, unsigned long error_code) in do_coprocessor_segment_overrun()
[all …]
Dirq.h24 extern void do_IRQ(struct pt_regs *regs, ul number);
131 void (*handler)(ul irq_num, ul parameter, struct pt_regs *regs);
155 int irq_register(ul irq_num, void *arg, void (*handler)(ul irq_num, ul parameter, struct pt_regs *r…
/DragonOS-0.1.2/kernel/src/arch/x86_64/asm/
Dptrace.rs2 use crate::include::bindings::bindings::pt_regs;
6 pub fn user_mode(regs: *const pt_regs)->bool{ in user_mode()
/DragonOS-0.1.2/kernel/src/process/
Dptrace.h9 struct pt_regs struct
43 static inline int user_mode(struct pt_regs *regs) in user_mode() argument
Dfork.c16 uint64_t stack_size, struct pt_regs *current_regs);
32 unsigned long do_fork(struct pt_regs *regs, unsigned long clone_flags, unsigned long stack_start, in do_fork()
304 static int process_rewrite_rbp(struct pt_regs *new_regs, struct process_control_block *new_pcb) in process_rewrite_rbp()
346 uint64_t stack_size, struct pt_regs *current_regs) in process_copy_thread()
353 struct pt_regs *child_regs = NULL; in process_copy_thread()
360 child_regs = (struct pt_regs *)(((uint64_t)pcb) + STACK_SIZE - size); in process_copy_thread()
368 child_regs = (struct pt_regs *)((uint64_t)pcb + STACK_SIZE - sizeof(struct pt_regs)); in process_copy_thread()
369 memcpy(child_regs, current_regs, sizeof(struct pt_regs)); in process_copy_thread()
Dprocess.h88 unsigned long do_fork(struct pt_regs *regs, unsigned long clone_flags, unsigned long stack_start,
124 ul do_execve(struct pt_regs *regs, char *path, char *argv[], char *envp[]);
Dprocess.c165 static int process_load_elf_file(struct pt_regs *regs, char *path) in process_load_elf_file()
352 ul do_execve(struct pt_regs *regs, char *path, char *argv[], char *envp[]) in do_execve()
498 struct pt_regs *regs; in initial_kernel_thread()
503 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread()
512 regs = (struct pt_regs *)current_pcb->thread->rsp; in initial_kernel_thread()
575 struct pt_regs regs; in kernel_thread()
/DragonOS-0.1.2/kernel/src/driver/interrupt/8259A/
D8259A.h30 void do_IRQ(struct pt_regs* rsp, ul number);
D8259A.c45 void do_IRQ(struct pt_regs *regs, ul number) in do_IRQ()
/DragonOS-0.1.2/kernel/src/debug/traceback/
Dtraceback.h17 void traceback(struct pt_regs * regs);
Dtraceback.c34 void traceback(struct pt_regs *regs) in traceback()
/DragonOS-0.1.2/kernel/src/arch/x86_64/
Dx86_64_ipi.h44 void (*handler)(uint64_t irq_num, uint64_t param, struct pt_regs *regs),
Dx86_64_ipi.c39 void (*handler)(uint64_t irq_num, uint64_t param, struct pt_regs *regs), in ipi_regiserIPI()
/DragonOS-0.1.2/kernel/src/smp/
Dipi.h38 void (*handler)(uint64_t irq_num, uint64_t param, struct pt_regs *regs),
Dsmp.c15 void ipi_0xc8_handler(uint64_t irq_num, uint64_t param, struct pt_regs *regs); // 由BSP转发的HPET中断处理函数
198 void ipi_0xc8_handler(uint64_t irq_num, uint64_t param, struct pt_regs *regs) in ipi_0xc8_handler()
/DragonOS-0.1.2/docs/kernel/debug/
Dtraceback.md11 ### `void traceback(struct pt_regs * regs)`
/DragonOS-0.1.2/kernel/src/mm/
Dmm-stat.c24 uint64_t sys_mm_stat(struct pt_regs *regs);
185 uint64_t sys_mstat(struct pt_regs *regs) in sys_mstat()
/DragonOS-0.1.2/kernel/src/driver/interrupt/apic/
Dapic_timer.c74 void apic_timer_handler(uint64_t number, uint64_t param, struct pt_regs *regs) in apic_timer_handler()
/DragonOS-0.1.2/kernel/src/ipc/
Dsignal.rs9 pid_t, process_control_block, process_do_exit, process_find_pcb_by_pid, pt_regs,
64 pub extern "C" fn sys_kill(regs: &pt_regs) -> u64 { in sys_kill()
400 pub extern "C" fn do_signal(regs: &mut pt_regs) { in do_signal() argument
438 _regs: pt_regs, in get_signal_to_deliver() argument
594 regs: &mut pt_regs, in handle_signal() argument
612 regs: &mut pt_regs, in setup_frame() argument
684 fn get_stack(_ka: &sigaction, regs: &pt_regs, size: usize) -> *mut sigframe { in get_stack() argument
717 fn setup_sigcontext(context: &mut sigcontext, mask: &sigset_t, regs: &pt_regs) -> Result<i32, i32> { in setup_sigcontext()
735 fn restore_sigcontext(context: *const sigcontext, regs: &mut pt_regs) -> bool { in restore_sigcontext()
778 pub extern "C" fn sys_sigaction(regs: &mut pt_regs) -> u64 { in sys_sigaction()
[all …]
/DragonOS-0.1.2/kernel/src/driver/disk/
Data.c14 void ata_disk_handler(ul irq_num, ul param, struct pt_regs *regs) in ata_disk_handler()
/DragonOS-0.1.2/kernel/src/driver/timers/HPET/
DHPET.c64 void HPET_handler(uint64_t number, uint64_t param, struct pt_regs *regs) in HPET_handler()
105 void HPET_measure_handler(uint64_t number, uint64_t param, struct pt_regs *regs) in HPET_measure_handler()
/DragonOS-0.1.2/kernel/src/time/
Dtimer.c126 uint64_t sys_clock(struct pt_regs *regs) in sys_clock()
/DragonOS-0.1.2/kernel/src/driver/keyboard/
Dps2_keyboard.c145 void ps2_keyboard_handler(ul irq_num, ul buf_vaddr, struct pt_regs *regs) in ps2_keyboard_handler()

12