/DragonOS-0.1.5/kernel/src/syscall/ |
D | syscall.h | 13 typedef unsigned long (*system_call_t)(struct pt_regs *regs); 44 ul system_call_not_exists(struct pt_regs *regs); 57 ul sys_printf(struct pt_regs *regs); 68 uint64_t sys_brk(struct pt_regs *regs); 76 uint64_t sys_sbrk(struct pt_regs *regs); 85 uint64_t sys_mkdir(struct pt_regs *regs); 94 uint64_t sys_pipe(struct pt_regs *regs); 96 ul sys_ahci_end_req(struct pt_regs *regs); 99 void do_syscall_int(struct pt_regs *regs, unsigned long error_code);
|
D | syscall.c | 16 extern uint64_t sys_clock(struct pt_regs *regs); 17 extern uint64_t sys_mstat(struct pt_regs *regs); 18 extern uint64_t sys_open(struct pt_regs *regs); 19 extern uint64_t sys_unlink_at(struct pt_regs *regs); 20 extern uint64_t sys_kill(struct pt_regs *regs); 21 extern uint64_t sys_sigaction(struct pt_regs *regs); 22 extern uint64_t sys_rt_sigreturn(struct pt_regs *regs); 23 extern uint64_t sys_getpid(struct pt_regs *regs); 24 extern uint64_t sys_sched(struct pt_regs *regs); 34 extern uint64_t sys_close(struct pt_regs *regs); [all …]
|
/DragonOS-0.1.5/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); 133 void (*handler)(ul irq_num, ul parameter, struct pt_regs *regs); 157 int irq_register(ul irq_num, void *arg, void (*handler)(ul irq_num, ul parameter, struct pt_regs *r…
|
/DragonOS-0.1.5/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.5/kernel/src/process/ |
D | ptrace.h | 5 struct pt_regs struct 39 static inline int user_mode(struct pt_regs *regs) in user_mode() argument
|
D | pid.rs | 1 use crate::{arch::asm::current::current_pcb, include::bindings::bindings::pt_regs}; 26 pub extern "C" fn sys_getpid(_regs: &pt_regs) -> u64 { in sys_getpid()
|
D | fork.c | 17 uint64_t stack_size, struct pt_regs *current_regs); 33 unsigned long do_fork(struct pt_regs *regs, unsigned long clone_flags, unsigned long stack_start, in do_fork() 279 static int process_rewrite_rbp(struct pt_regs *new_regs, struct process_control_block *new_pcb) in process_rewrite_rbp() 321 uint64_t stack_size, struct pt_regs *current_regs) in process_copy_thread() 328 struct pt_regs *child_regs = NULL; in process_copy_thread() 335 child_regs = (struct pt_regs *)(((uint64_t)pcb) + STACK_SIZE - size); in process_copy_thread() 343 child_regs = (struct pt_regs *)((uint64_t)pcb + STACK_SIZE - sizeof(struct pt_regs)); in process_copy_thread() 344 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 | 143 struct pt_regs tmp = {0}; in process_open_exec_file() 157 static int process_load_elf_file(struct pt_regs *regs, char *path) in process_load_elf_file() 171 struct pt_regs tmp_use_fs = {0}; in process_load_elf_file() 390 struct pt_regs tmp = {0}; in process_load_elf_file() 410 ul do_execve(struct pt_regs *regs, char *path, char *argv[], char *envp[]) in do_execve() 583 struct pt_regs *regs; in initial_kernel_thread() 588 current_pcb->thread->rsp = (ul)current_pcb + STACK_SIZE - sizeof(struct pt_regs); in initial_kernel_thread() 598 regs = (struct pt_regs *)current_pcb->thread->rsp; in initial_kernel_thread() 661 struct pt_regs regs; in kernel_thread()
|
/DragonOS-0.1.5/kernel/src/filesystem/vfs/ |
D | syscall.rs | 8 pt_regs, verify_area, AT_REMOVEDIR, EBADF, EFAULT, EINVAL, ENAMETOOLONG, ENOENT, ENOTDIR, 28 pub extern "C" fn sys_open(regs: &pt_regs) -> u64 { in sys_open() 50 pub extern "C" fn sys_close(regs: &pt_regs) -> u64 { in sys_close() 67 pub extern "C" fn sys_read(regs: &pt_regs) -> u64 { in sys_read() 96 pub extern "C" fn sys_write(regs: &pt_regs) -> u64 { in sys_write() 125 pub extern "C" fn sys_lseek(regs: &pt_regs) -> u64 { in sys_lseek() 169 pub extern "C" fn sys_chdir(regs: &pt_regs) -> u64 { in sys_chdir() 225 pub extern "C" fn sys_getdents(regs: &pt_regs) -> u64 { in sys_getdents() 264 pub extern "C" fn sys_mkdir(regs: &pt_regs) -> u64 { in sys_mkdir() 303 pub extern "C" fn sys_unlink_at(regs: &pt_regs) -> u64 { in sys_unlink_at()
|
/DragonOS-0.1.5/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.5/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.5/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.5/kernel/src/smp/ |
D | ipi.h | 38 void (*handler)(uint64_t irq_num, uint64_t param, struct pt_regs *regs),
|
/DragonOS-0.1.5/docs/kernel/debug/ |
D | traceback.md | 11 ### `void traceback(struct pt_regs * regs)`
|
/DragonOS-0.1.5/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.5/kernel/src/driver/interrupt/apic/ |
D | apic_timer.c | 90 void apic_timer_handler(uint64_t number, uint64_t param, struct pt_regs *regs) in apic_timer_handler()
|
/DragonOS-0.1.5/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() 429 pub extern "C" fn do_signal(regs: &mut pt_regs) { in do_signal() argument 466 _regs: pt_regs, in get_signal_to_deliver() argument 622 regs: &mut pt_regs, in handle_signal() argument 640 regs: &mut pt_regs, in setup_frame() argument 712 fn get_stack(_ka: &sigaction, regs: &pt_regs, size: usize) -> *mut sigframe { in get_stack() argument 745 fn setup_sigcontext(context: &mut sigcontext, mask: &sigset_t, regs: &pt_regs) -> Result<i32, i32> { in setup_sigcontext() 763 fn restore_sigcontext(context: *const sigcontext, regs: &mut pt_regs) -> bool { in restore_sigcontext() 806 pub extern "C" fn sys_sigaction(regs: &mut pt_regs) -> u64 { in sys_sigaction() [all …]
|
/DragonOS-0.1.5/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.5/kernel/src/sched/ |
D | core.rs | 11 process_control_block, pt_regs, EINVAL, EPERM, MAX_CPU_NUM, PF_NEED_MIGRATE, PROC_RUNNING, 175 pub extern "C" fn sys_sched(regs: &'static mut pt_regs) -> u64 { in sys_sched()
|
/DragonOS-0.1.5/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()
|