Home
last modified time | relevance | path

Searched defs:TrapFrame (Results 1 – 25 of 28) sorted by relevance

12

/DragonOS/kernel/src/arch/riscv64/interrupt/
H A Dmod.rs69 pub struct TrapFrame { struct
70 pub epc: usize,
71 pub ra: usize,
72 pub sp: usize,
73 pub gp: usize,
74 pub tp: usize,
75 pub t0: usize,
76 pub t1: usize,
77 pub t2: usize,
78 pub s0: usize,
[all …]
H A Dhandle.rs35 unsafe extern "C" fn riscv64_do_irq(trap_frame: &mut TrapFrame) { in riscv64_do_irq()
44 fn riscv64_do_interrupt(trap_frame: &mut TrapFrame) { in riscv64_do_interrupt()
49 fn riscv64_do_exception(trap_frame: &mut TrapFrame) { in riscv64_do_exception()
/DragonOS/kernel/src/arch/x86_64/interrupt/
H A Dmod.rs109 pub struct TrapFrame { struct
110 pub r15: ::core::ffi::c_ulong,
111 pub r14: ::core::ffi::c_ulong,
112 pub r13: ::core::ffi::c_ulong,
136 impl Default for TrapFrame { argument
142 impl TrapFrame { impl
187 impl ProbeArgs for TrapFrame { implementation
H A Dtrap.rs115 unsafe extern "C" fn do_divide_error(regs: &'static TrapFrame, error_code: u64) { in do_divide_error()
129 unsafe extern "C" fn do_debug(regs: &'static mut TrapFrame, error_code: u64) { in do_debug()
143 unsafe extern "C" fn do_nmi(regs: &'static TrapFrame, error_code: u64) { in do_nmi()
157 unsafe extern "C" fn do_int3(regs: &'static mut TrapFrame, error_code: u64) { in do_int3()
171 unsafe extern "C" fn do_overflow(regs: &'static TrapFrame, error_code: u64) { in do_overflow()
185 unsafe extern "C" fn do_bounds(regs: &'static TrapFrame, error_code: u64) { in do_bounds()
199 unsafe extern "C" fn do_undefined_opcode(regs: &'static TrapFrame, error_code: u64) { in do_undefined_opcode()
213 unsafe extern "C" fn do_dev_not_avaliable(regs: &'static TrapFrame, error_code: u64) { in do_dev_not_avaliable()
227 unsafe extern "C" fn do_double_fault(regs: &'static TrapFrame, error_code: u64) { in do_double_fault()
241 unsafe extern "C" fn do_coprocessor_segment_overrun(regs: &'static TrapFrame, error_code: u64) { in do_coprocessor_segment_overrun()
[all …]
H A Dhandle.rs16 unsafe extern "C" fn x86_64_do_irq(trap_frame: &mut TrapFrame, vector: u32) { in x86_64_do_irq()
H A Dipi.rs249 fn handle(&self, irq_desc: &Arc<IrqDesc>, _trap_frame: &mut TrapFrame) { in handle()
/DragonOS/kernel/src/time/
H A Dtick_common.rs12 pub fn tick_handle_periodic(trap_frame: &TrapFrame) { in tick_handle_periodic()
18 fn tick_periodic(cpu_id: ProcessorId, trap_frame: &TrapFrame) { in tick_periodic()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dfault.rs71 regs: &'static TrapFrame, in show_fault_oops()
136 regs: &'static TrapFrame, in page_fault_oops()
153 _regs: &'static TrapFrame, in do_kern_addr_fault()
176 regs: &'static TrapFrame, in do_user_addr_fault()
/DragonOS/kernel/src/init/
H A Dinitial_kthread.rs121 trap_frame: &mut TrapFrame, in try_to_run_init_process()
141 trap_frame: &mut TrapFrame, in run_init_process()
/DragonOS/kernel/src/arch/riscv64/process/
H A Dmod.rs51 pub unsafe fn arch_switch_to_user(trap_frame: TrapFrame) -> ! { in arch_switch_to_user()
105 current_trapframe: &TrapFrame, in copy_thread()
215 unsafe fn task_trapframe(task: &Arc<ProcessControlBlock>) -> &mut TrapFrame { in task_trapframe()
424 fn save(&mut self, regs: &mut TrapFrame) { in save()
431 fn restore(&mut self, regs: &mut TrapFrame) { in restore()
438 fn do_clean(&mut self, regs: &mut TrapFrame) { in do_clean()
H A Dsyscall.rs13 regs: &mut TrapFrame, in arch_do_execve()
/DragonOS/kernel/src/exception/
H A Dhandle.rs50 fn handle(&self, irq_desc: &Arc<IrqDesc>, _trap_frame: &mut TrapFrame) { in handle()
62 fn handle(&self, irq_desc: &Arc<IrqDesc>, _trap_frame: &mut TrapFrame) { in handle()
101 fn handle(&self, irq_desc: &Arc<IrqDesc>, _trap_frame: &mut TrapFrame) { in handle()
364 fn handle(&self, irq_desc: &Arc<IrqDesc>, _trap_frame: &mut TrapFrame) { in handle()
H A Dirqdesc.rs47 fn handle(&self, irq_desc: &Arc<IrqDesc>, trap_frame: &mut TrapFrame); in handle()
1040 trap_frame: &mut TrapFrame, in handle_domain_irq()
/DragonOS/kernel/src/arch/riscv64/syscall/
H A Dmod.rs31 pub(super) fn syscall_handler(syscall_num: usize, frame: &mut TrapFrame) -> () { in syscall_handler()
/DragonOS/kernel/src/arch/x86_64/
H A Dkprobe.rs3 pub fn setup_single_step(frame: &mut TrapFrame, step_addr: usize) { in setup_single_step()
8 pub fn clear_single_step(frame: &mut TrapFrame, return_addr: usize) { in clear_single_step()
/DragonOS/kernel/src/arch/x86_64/ipc/
H A Dsignal.rs359 frame: &TrapFrame, in setup_sigcontext()
409 unsafe extern "C" fn do_signal(frame: &mut TrapFrame) { in do_signal()
417 unsafe fn do_signal(frame: &mut TrapFrame) { in do_signal()
541 frame: &mut TrapFrame, in handle_signal()
557 trap_frame: &mut TrapFrame, in setup_frame()
684 fn get_stack(frame: &TrapFrame, size: usize) -> *mut SigFrame { in get_stack()
/DragonOS/kernel/src/arch/riscv64/
H A Dkprobe.rs3 pub fn setup_single_step(frame: &mut TrapFrame, step_addr: usize) { in setup_single_step()
7 pub fn clear_single_step(frame: &mut TrapFrame, return_addr: usize) { in clear_single_step()
/DragonOS/kernel/src/arch/x86_64/syscall/
H A Dmod.rs67 pub extern "sysv64" fn syscall_handler(frame: &mut TrapFrame) { in syscall_handler()
/DragonOS/kernel/src/arch/x86_64/process/
H A Dmod.rs303 current_trapframe: &TrapFrame, in copy_thread()
509 pub unsafe fn arch_switch_to_user(trap_frame: TrapFrame) -> ! { in arch_switch_to_user()
558 trap_frame: TrapFrame, in ready_to_switch_to_user()
H A Dsyscall.rs19 regs: &mut TrapFrame, in arch_do_execve()
/DragonOS/kernel/src/driver/clocksource/
H A Dtimer_riscv.rs134 fn handle(&self, _irq_desc: &Arc<IrqDesc>, trap_frame: &mut TrapFrame) { in handle()
/DragonOS/kernel/src/process/
H A Dsyscall.rs107 frame: &mut TrapFrame, in execve()
156 regs: &mut TrapFrame, in do_execve()
281 current_trapframe: &TrapFrame, in clone()
H A Dfork.rs161 current_trapframe: &TrapFrame, in fork()
346 current_trapframe: &TrapFrame, in copy_process()
/DragonOS/kernel/src/driver/irqchip/
H A Driscv_intc.rs213 pub fn riscv_intc_irq(trap_frame: &mut TrapFrame) { in riscv_intc_irq()
/DragonOS/kernel/src/arch/x86_64/driver/apic/
H A Dapic_timer.rs70 fn handle(&self, _irq_desc: &Arc<IrqDesc>, trap_frame: &mut TrapFrame) { in handle()

12