linux kernel (2) 썸네일형 리스트형 [RISC-V]: Interrupt handling workflow in Linux kernel Interrupt handling routines are architecture-dependent. The way interrupts are managed and processed can vary significantly between different computer architectures. Interrupt handling routines can be different between RISC-V and Armv8. Understanding interrupt handling routines is crucial when dealing with real-time operating systems (RTOS) and the Linux kernel. Since RTOS and Linux kernel rely .. [RISC-V] sudo code for exception handling in Linux kernel ... MP:FFFFFFFF80002FEA| csrrc x9,sstatus,x5 // atomic read and clear bits in CSR. MP:FFFFFFFF80002FEE| csrr x18,sepc MP:FFFFFFFF80002FF2| csrr x19,stval MP:FFFFFFFF80002FF6| csrr x20,scause MP:FFFFFFFF80002FFA| csrr x21,sscratch void handle_exception() { word scause; word offset_vect; void *exception_func; bool interrupt_status; scause = sys_csr_reg_read(scause); // csrr x20,scause interrupt_st.. 이전 1 다음