/DragonOS-0.1.2/kernel/src/syscall/ |
D | syscall.h | 13 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);
|
D | syscall.c | 18 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/ |
D | trap.c | 12 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 …]
|
D | irq.h | 24 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/ |
D | ptrace.rs | 2 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/ |
D | ptrace.h | 9 struct pt_regs struct 43 static inline int user_mode(struct pt_regs *regs) in user_mode() argument
|
D | fork.c | 16 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()
|
D | process.h | 88 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[]);
|
D | process.c | 165 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/ |
D | 8259A.h | 30 void do_IRQ(struct pt_regs* rsp, ul number);
|
D | 8259A.c | 45 void do_IRQ(struct pt_regs *regs, ul number) in do_IRQ()
|
/DragonOS-0.1.2/kernel/src/debug/traceback/ |
D | traceback.h | 17 void traceback(struct pt_regs * regs);
|
D | traceback.c | 34 void traceback(struct pt_regs *regs) in traceback()
|
/DragonOS-0.1.2/kernel/src/arch/x86_64/ |
D | x86_64_ipi.h | 44 void (*handler)(uint64_t irq_num, uint64_t param, struct pt_regs *regs),
|
D | x86_64_ipi.c | 39 void (*handler)(uint64_t irq_num, uint64_t param, struct pt_regs *regs), in ipi_regiserIPI()
|
/DragonOS-0.1.2/kernel/src/smp/ |
D | ipi.h | 38 void (*handler)(uint64_t irq_num, uint64_t param, struct pt_regs *regs),
|
D | smp.c | 15 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/ |
D | traceback.md | 11 ### `void traceback(struct pt_regs * regs)`
|
/DragonOS-0.1.2/kernel/src/mm/ |
D | mm-stat.c | 24 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/ |
D | apic_timer.c | 74 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/ |
D | signal.rs | 9 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/ |
D | ata.c | 14 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/ |
D | HPET.c | 64 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/ |
D | timer.c | 126 uint64_t sys_clock(struct pt_regs *regs) in sys_clock()
|
/DragonOS-0.1.2/kernel/src/driver/keyboard/ |
D | ps2_keyboard.c | 145 void ps2_keyboard_handler(ul irq_num, ul buf_vaddr, struct pt_regs *regs) in ps2_keyboard_handler()
|