HelenOS sources
istate 64 kernel/arch/abs32le/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 65 kernel/arch/abs32le/include/arch/istate.h REQUIRES_EXTENT_MUTABLE(istate)
istate 72 kernel/arch/abs32le/include/arch/istate.h return !(istate->ip & UINT32_C(0x80000000));
istate 75 kernel/arch/abs32le/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 77 kernel/arch/abs32le/include/arch/istate.h WRITES(&istate->ip)
istate 81 kernel/arch/abs32le/include/arch/istate.h istate->ip = retaddr;
istate 84 kernel/arch/abs32le/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 85 kernel/arch/abs32le/include/arch/istate.h REQUIRES_EXTENT_MUTABLE(istate)
istate 89 kernel/arch/abs32le/include/arch/istate.h return istate->ip;
istate 92 kernel/arch/abs32le/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 93 kernel/arch/abs32le/include/arch/istate.h REQUIRES_EXTENT_MUTABLE(istate)
istate 97 kernel/arch/abs32le/include/arch/istate.h return istate->fp;
istate 100 kernel/arch/abs32le/src/abs32le.c void istate_decode(istate_t *istate)
istate 102 kernel/arch/abs32le/src/abs32le.c (void) istate;
istate 56 kernel/arch/abs32le/src/mm/page.c void page_fault(unsigned int n __attribute__((unused)), istate_t *istate)
istate 49 kernel/arch/amd64/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 51 kernel/arch/amd64/include/arch/istate.h return (istate->cs & RPL_USER) == RPL_USER;
istate 54 kernel/arch/amd64/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 57 kernel/arch/amd64/include/arch/istate.h istate->rip = retaddr;
istate 60 kernel/arch/amd64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 62 kernel/arch/amd64/include/arch/istate.h return istate->rip;
istate 65 kernel/arch/amd64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 67 kernel/arch/amd64/include/arch/istate.h return istate->rbp;
istate 62 kernel/arch/amd64/src/interrupt.c void istate_decode(istate_t *istate)
istate 66 kernel/arch/amd64/src/interrupt.c istate->cs, istate->rip, istate->rflags, istate->error_word);
istate 68 kernel/arch/amd64/src/interrupt.c if (istate_from_uspace(istate))
istate 69 kernel/arch/amd64/src/interrupt.c log_printf("ss =%0#18" PRIx64 "\n", istate->ss);
istate 73 kernel/arch/amd64/src/interrupt.c istate->rax, istate->rbx, istate->rcx, istate->rdx);
istate 77 kernel/arch/amd64/src/interrupt.c istate->rsi, istate->rdi, istate->rbp,
istate 78 kernel/arch/amd64/src/interrupt.c istate_from_uspace(istate) ? istate->rsp :
istate 79 kernel/arch/amd64/src/interrupt.c (uintptr_t) &istate->rsp);
istate 83 kernel/arch/amd64/src/interrupt.c istate->r8, istate->r9, istate->r10, istate->r11);
istate 87 kernel/arch/amd64/src/interrupt.c istate->r12, istate->r13, istate->r14, istate->r15);
istate 90 kernel/arch/amd64/src/interrupt.c static void null_interrupt(unsigned int n, istate_t *istate)
istate 92 kernel/arch/amd64/src/interrupt.c fault_if_from_uspace(istate, "Unserviced interrupt: %u.", n);
istate 93 kernel/arch/amd64/src/interrupt.c panic_badtrap(istate, n, "Unserviced interrupt.");
istate 96 kernel/arch/amd64/src/interrupt.c static void de_fault(unsigned int n, istate_t *istate)
istate 98 kernel/arch/amd64/src/interrupt.c fault_if_from_uspace(istate, "Divide error.");
istate 99 kernel/arch/amd64/src/interrupt.c panic_badtrap(istate, n, "Divide error.");
istate 105 kernel/arch/amd64/src/interrupt.c static void gp_fault(unsigned int n, istate_t *istate)
istate 123 kernel/arch/amd64/src/interrupt.c fault_if_from_uspace(istate, "General protection fault.");
istate 125 kernel/arch/amd64/src/interrupt.c panic_badtrap(istate, n, "General protection fault.");
istate 128 kernel/arch/amd64/src/interrupt.c static void ss_fault(unsigned int n, istate_t *istate)
istate 130 kernel/arch/amd64/src/interrupt.c fault_if_from_uspace(istate, "Stack fault.");
istate 131 kernel/arch/amd64/src/interrupt.c panic_badtrap(istate, n, "Stack fault.");
istate 134 kernel/arch/amd64/src/interrupt.c static void nm_fault(unsigned int n, istate_t *istate)
istate 139 kernel/arch/amd64/src/interrupt.c fault_if_from_uspace(istate, "FPU fault.");
istate 145 kernel/arch/amd64/src/interrupt.c static void tlb_shootdown_ipi(unsigned int n, istate_t *istate)
istate 155 kernel/arch/amd64/src/interrupt.c static void irq_interrupt(unsigned int n, istate_t *istate)
istate 188 kernel/arch/amd64/src/interrupt.c static void pic_spurious(unsigned int n, istate_t *istate)
istate 193 kernel/arch/amd64/src/interrupt.c irq_interrupt(n, istate);
istate 76 kernel/arch/amd64/src/mm/page.c void page_fault(unsigned int n, istate_t *istate)
istate 80 kernel/arch/amd64/src/mm/page.c if (istate->error_word & PFERR_CODE_RSVD)
istate 85 kernel/arch/amd64/src/mm/page.c if (istate->error_word & PFERR_CODE_RW)
istate 87 kernel/arch/amd64/src/mm/page.c else if (istate->error_word & PFERR_CODE_ID)
istate 92 kernel/arch/amd64/src/mm/page.c (void) as_page_fault(badvaddr, access, istate);
istate 162 kernel/arch/amd64/src/smp/apic.c istate_t *istate __attribute__((unused)))
istate 57 kernel/arch/arm32/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 60 kernel/arch/arm32/include/arch/istate.h istate->pc = retaddr;
istate 64 kernel/arch/arm32/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 66 kernel/arch/arm32/include/arch/istate.h return (istate->spsr & STATUS_REG_MODE_MASK) == USER_MODE;
istate 70 kernel/arch/arm32/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 72 kernel/arch/arm32/include/arch/istate.h return istate->pc;
istate 75 kernel/arch/arm32/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 77 kernel/arch/arm32/include/arch/istate.h return istate->fp;
istate 88 kernel/arch/arm32/include/arch/machine_func.h extern void machine_irq_exception(unsigned int exc_no, istate_t *istate);
istate 89 kernel/arch/arm32/src/exception.c static void swi_exception(unsigned int exc_no, istate_t *istate)
istate 92 kernel/arch/arm32/src/exception.c istate->r0 = syscall_handler(istate->r0, istate->r1, istate->r2,
istate 93 kernel/arch/arm32/src/exception.c istate->r3, istate->r4, istate->r5, istate->r6);
istate 155 kernel/arch/arm32/src/exception.c static void irq_exception(unsigned int exc_no, istate_t *istate)
istate 157 kernel/arch/arm32/src/exception.c machine_irq_exception(exc_no, istate);
istate 164 kernel/arch/arm32/src/exception.c static void undef_insn_exception(unsigned int exc_no, istate_t *istate)
istate 173 kernel/arch/arm32/src/exception.c istate->pc -= 4;
istate 177 kernel/arch/arm32/src/exception.c fault_if_from_uspace(istate, "Undefined instruction.");
istate 178 kernel/arch/arm32/src/exception.c panic_badtrap(istate, exc_no, "Undefined instruction.");
istate 210 kernel/arch/arm32/src/exception.c void istate_decode(istate_t *istate)
istate 214 kernel/arch/arm32/src/exception.c istate->r0, istate->r1, istate->r2, istate->r3);
istate 217 kernel/arch/arm32/src/exception.c istate->r4, istate->r5, istate->r6, istate->r7);
istate 220 kernel/arch/arm32/src/exception.c istate->r8, istate->r9, istate->r10, istate->fp);
istate 223 kernel/arch/arm32/src/exception.c istate->r12, istate->sp, istate->lr, istate->spsr);
istate 52 kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c static void bbxm_irq_exception(unsigned int exc_no, istate_t *istate);
istate 150 kernel/arch/arm32/src/mach/beagleboardxm/beagleboardxm.c static void bbxm_irq_exception(unsigned int exc_no, istate_t *istate)
istate 58 kernel/arch/arm32/src/mach/beaglebone/beaglebone.c static void bbone_irq_exception(unsigned int exc_no, istate_t *istate);
istate 178 kernel/arch/arm32/src/mach/beaglebone/beaglebone.c static void bbone_irq_exception(unsigned int exc_no, istate_t *istate)
istate 69 kernel/arch/arm32/src/mach/gta02/gta02.c static void gta02_irq_exception(unsigned int exc_no, istate_t *istate);
istate 134 kernel/arch/arm32/src/mach/gta02/gta02.c static void gta02_irq_exception(unsigned int exc_no, istate_t *istate)
istate 259 kernel/arch/arm32/src/mach/integratorcp/integratorcp.c void icp_irq_exception(unsigned int exc_no, istate_t *istate)
istate 62 kernel/arch/arm32/src/mach/raspberrypi/raspberrypi.c static void raspberrypi_irq_exception(unsigned int exc_no, istate_t *istate);
istate 153 kernel/arch/arm32/src/mach/raspberrypi/raspberrypi.c static void raspberrypi_irq_exception(unsigned int exc_no, istate_t *istate)
istate 101 kernel/arch/arm32/src/machine_func.c void machine_irq_exception(unsigned int exc_no, istate_t *istate)
istate 103 kernel/arch/arm32/src/machine_func.c (machine_ops->machine_irq_exception)(exc_no, istate);
istate 198 kernel/arch/arm32/src/mm/page_fault.c void data_abort(unsigned int exc_no, istate_t *istate)
istate 231 kernel/arch/arm32/src/mm/page_fault.c fault_if_from_uspace(istate, "Unhandled abort %s at address: "
istate 241 kernel/arch/arm32/src/mm/page_fault.c const pf_access_t access = get_memory_access_type(istate->pc, badvaddr);
istate 245 kernel/arch/arm32/src/mm/page_fault.c as_page_fault(badvaddr, access, istate);
istate 254 kernel/arch/arm32/src/mm/page_fault.c void prefetch_abort(unsigned int exc_no, istate_t *istate)
istate 256 kernel/arch/arm32/src/mm/page_fault.c as_page_fault(istate->pc, PF_ACCESS_EXEC, istate);
istate 63 kernel/arch/arm32/src/ras.c void ras_check(unsigned int n, istate_t *istate)
istate 68 kernel/arch/arm32/src/ras.c if (istate_from_uspace(istate)) {
istate 70 kernel/arch/arm32/src/ras.c if ((ras_page[RAS_START] < istate->pc) &&
istate 71 kernel/arch/arm32/src/ras.c (ras_page[RAS_END] > istate->pc)) {
istate 80 kernel/arch/arm32/src/ras.c exc_dispatch(n, istate);
istate 82 kernel/arch/arm32/src/ras.c istate->pc = restart_pc;
istate 56 kernel/arch/arm64/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 59 kernel/arch/arm64/include/arch/istate.h istate->pc = retaddr;
istate 63 kernel/arch/arm64/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 65 kernel/arch/arm64/include/arch/istate.h return (istate->spsr & SPSR_MODE_MASK) >> SPSR_MODE_SHIFT ==
istate 70 kernel/arch/arm64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 72 kernel/arch/arm64/include/arch/istate.h return istate->pc;
istate 76 kernel/arch/arm64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 78 kernel/arch/arm64/include/arch/istate.h return istate->x29;
istate 46 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 48 kernel/arch/arm64/src/exception.c panic_badtrap(istate, exc_no, "Unhandled exception from Current EL, "
istate 54 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 56 kernel/arch/arm64/src/exception.c panic_badtrap(istate, exc_no, "Unhandled exception from Current EL, "
istate 62 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 64 kernel/arch/arm64/src/exception.c panic_badtrap(istate, exc_no, "Unhandled exception from Current EL, "
istate 70 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 72 kernel/arch/arm64/src/exception.c panic_badtrap(istate, exc_no, "Unhandled exception from Current EL, "
istate 78 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 95 kernel/arch/arm64/src/exception.c as_page_fault(far_el1, access, istate);
istate 100 kernel/arch/arm64/src/exception.c panic_badtrap(istate, exc_no, "Unhandled exception from Current EL, "
istate 106 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 108 kernel/arch/arm64/src/exception.c machine_irq_exception(exc_no, istate);
istate 112 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 114 kernel/arch/arm64/src/exception.c panic_badtrap(istate, exc_no, "Unhandled exception from Current EL, "
istate 120 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 122 kernel/arch/arm64/src/exception.c panic_badtrap(istate, exc_no, "Unhandled exception from Current EL, "
istate 128 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 141 kernel/arch/arm64/src/exception.c fault_from_uspace(istate, "AdvSIMD/FP fault.");
istate 147 kernel/arch/arm64/src/exception.c istate->x0 = syscall_handler(istate->x0, istate->x1, istate->x2,
istate 148 kernel/arch/arm64/src/exception.c istate->x3, istate->x4, istate->x5, istate->x6);
istate 168 kernel/arch/arm64/src/exception.c as_page_fault(far_el1, access, istate);
istate 173 kernel/arch/arm64/src/exception.c fault_from_uspace(istate, "Unhandled exception from Lower EL, AArch64, "
istate 179 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 181 kernel/arch/arm64/src/exception.c machine_irq_exception(exc_no, istate);
istate 185 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 187 kernel/arch/arm64/src/exception.c fault_from_uspace(istate, "Unhandled exception from Lower EL, AArch64, "
istate 193 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 195 kernel/arch/arm64/src/exception.c fault_from_uspace(istate, "Unhandled exception from Lower EL, AArch64, "
istate 201 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 203 kernel/arch/arm64/src/exception.c fault_from_uspace(istate, "Unhandled exception from Lower EL, AArch32, "
istate 209 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 211 kernel/arch/arm64/src/exception.c fault_from_uspace(istate, "Unhandled exception from Lower EL, AArch32, "
istate 217 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 219 kernel/arch/arm64/src/exception.c fault_from_uspace(istate, "Unhandled exception from Lower EL, AArch32, "
istate 225 kernel/arch/arm64/src/exception.c istate_t *istate)
istate 227 kernel/arch/arm64/src/exception.c fault_from_uspace(istate, "Unhandled exception from Lower EL, AArch32, "
istate 295 kernel/arch/arm64/src/exception.c void istate_decode(istate_t *istate)
istate 298 kernel/arch/arm64/src/exception.c "x2 =%0#18" PRIx64 "\n", istate->x0, istate->x1, istate->x2);
istate 300 kernel/arch/arm64/src/exception.c "x5 =%0#18" PRIx64 "\n", istate->x3, istate->x4, istate->x5);
istate 302 kernel/arch/arm64/src/exception.c "x8 =%0#18" PRIx64 "\n", istate->x6, istate->x7, istate->x8);
istate 304 kernel/arch/arm64/src/exception.c "x11=%0#18" PRIx64 "\n", istate->x9, istate->x10, istate->x11);
istate 306 kernel/arch/arm64/src/exception.c "x14=%0#18" PRIx64 "\n", istate->x12, istate->x13, istate->x14);
istate 308 kernel/arch/arm64/src/exception.c "x17=%0#18" PRIx64 "\n", istate->x15, istate->x16, istate->x17);
istate 310 kernel/arch/arm64/src/exception.c "x20=%0#18" PRIx64 "\n", istate->x18, istate->x19, istate->x20);
istate 312 kernel/arch/arm64/src/exception.c "x23=%0#18" PRIx64 "\n", istate->x21, istate->x22, istate->x23);
istate 314 kernel/arch/arm64/src/exception.c "x26=%0#18" PRIx64 "\n", istate->x24, istate->x25, istate->x26);
istate 316 kernel/arch/arm64/src/exception.c "x29=%0#18" PRIx64 "\n", istate->x27, istate->x28, istate->x29);
istate 318 kernel/arch/arm64/src/exception.c "pc =%0#18" PRIx64 "\n", istate->x30, istate->sp, istate->pc);
istate 319 kernel/arch/arm64/src/exception.c printf("spsr=%0#18" PRIx64 "\ttpidr=%0#18" PRIx64 "\n", istate->spsr,
istate 320 kernel/arch/arm64/src/exception.c istate->tpidr);
istate 67 kernel/arch/arm64/src/mach/hikey960/hikey960.c static void hikey960_irq_exception(unsigned int exc_no, istate_t *istate)
istate 51 kernel/arch/arm64/src/mach/virt/virt.c static void virt_irq_exception(unsigned int exc_no, istate_t *istate);
istate 85 kernel/arch/arm64/src/mach/virt/virt.c static void virt_irq_exception(unsigned int exc_no, istate_t *istate)
istate 68 kernel/arch/arm64/src/machine_func.c void machine_irq_exception(unsigned int exc_no, istate_t *istate)
istate 70 kernel/arch/arm64/src/machine_func.c machine_ops->machine_irq_exception(exc_no, istate);
istate 49 kernel/arch/ia32/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 51 kernel/arch/ia32/include/arch/istate.h return (istate->cs & RPL_USER) == RPL_USER;
istate 54 kernel/arch/ia32/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 57 kernel/arch/ia32/include/arch/istate.h istate->eip = retaddr;
istate 60 kernel/arch/ia32/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 62 kernel/arch/ia32/include/arch/istate.h return istate->eip;
istate 65 kernel/arch/ia32/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 67 kernel/arch/ia32/include/arch/istate.h return istate->ebp;
istate 66 kernel/arch/ia32/src/interrupt.c void istate_decode(istate_t *istate)
istate 70 kernel/arch/ia32/src/interrupt.c istate->cs, istate->eip, istate->eflags, istate->error_word);
istate 74 kernel/arch/ia32/src/interrupt.c istate->ds, istate->es, istate->fs, istate->gs);
istate 76 kernel/arch/ia32/src/interrupt.c if (istate_from_uspace(istate))
istate 77 kernel/arch/ia32/src/interrupt.c printf("ss =%0#10" PRIx32 "\n", istate->ss);
istate 81 kernel/arch/ia32/src/interrupt.c istate->eax, istate->ebx, istate->ecx, istate->edx);
istate 85 kernel/arch/ia32/src/interrupt.c istate->esi, istate->edi, istate->ebp,
istate 86 kernel/arch/ia32/src/interrupt.c istate_from_uspace(istate) ? istate->esp :
istate 87 kernel/arch/ia32/src/interrupt.c (uint32_t) &istate->esp);
istate 90 kernel/arch/ia32/src/interrupt.c static void null_interrupt(unsigned int n, istate_t *istate)
istate 92 kernel/arch/ia32/src/interrupt.c fault_if_from_uspace(istate, "Unserviced interrupt: %u.", n);
istate 93 kernel/arch/ia32/src/interrupt.c panic_badtrap(istate, n, "Unserviced interrupt: %u.", n);
istate 96 kernel/arch/ia32/src/interrupt.c static void de_fault(unsigned int n, istate_t *istate)
istate 98 kernel/arch/ia32/src/interrupt.c fault_if_from_uspace(istate, "Divide error.");
istate 99 kernel/arch/ia32/src/interrupt.c panic_badtrap(istate, n, "Divide error.");
istate 102 kernel/arch/ia32/src/interrupt.c static void db_exception(unsigned int n, istate_t *istate)
istate 113 kernel/arch/ia32/src/interrupt.c static void gp_fault(unsigned int n __attribute__((unused)), istate_t *istate)
istate 131 kernel/arch/ia32/src/interrupt.c fault_if_from_uspace(istate, "General protection fault.");
istate 133 kernel/arch/ia32/src/interrupt.c panic_badtrap(istate, n, "General protection fault.");
istate 136 kernel/arch/ia32/src/interrupt.c static void ss_fault(unsigned int n __attribute__((unused)), istate_t *istate)
istate 138 kernel/arch/ia32/src/interrupt.c fault_if_from_uspace(istate, "Stack fault.");
istate 139 kernel/arch/ia32/src/interrupt.c panic_badtrap(istate, n, "Stack fault.");
istate 142 kernel/arch/ia32/src/interrupt.c static void simd_fp_exception(unsigned int n __attribute__((unused)), istate_t *istate)
istate 150 kernel/arch/ia32/src/interrupt.c fault_if_from_uspace(istate, "SIMD FP exception(19), MXCSR=%#0" PRIx32 ".",
istate 152 kernel/arch/ia32/src/interrupt.c panic_badtrap(istate, n, "SIMD FP exception");
istate 156 kernel/arch/ia32/src/interrupt.c istate_t *istate __attribute__((unused)))
istate 161 kernel/arch/ia32/src/interrupt.c fault_if_from_uspace(istate, "FPU fault.");
istate 162 kernel/arch/ia32/src/interrupt.c panic_badtrap(istate, n, "FPU fault.");
istate 168 kernel/arch/ia32/src/interrupt.c istate_t *istate __attribute__((unused)))
istate 176 kernel/arch/ia32/src/interrupt.c static void irq_interrupt(unsigned int n, istate_t *istate __attribute__((unused)))
istate 209 kernel/arch/ia32/src/interrupt.c static void pic_spurious(unsigned int n, istate_t *istate)
istate 214 kernel/arch/ia32/src/interrupt.c irq_interrupt(n, istate);
istate 82 kernel/arch/ia32/src/mm/page.c void page_fault(unsigned int n __attribute__((unused)), istate_t *istate)
istate 89 kernel/arch/ia32/src/mm/page.c if (istate->error_word & PFERR_CODE_RSVD)
istate 92 kernel/arch/ia32/src/mm/page.c if (istate->error_word & PFERR_CODE_RW)
istate 97 kernel/arch/ia32/src/mm/page.c (void) as_page_fault(badvaddr, access, istate);
istate 162 kernel/arch/ia32/src/smp/apic.c istate_t *istate __attribute__((unused)))
istate 52 kernel/arch/ia64/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 55 kernel/arch/ia64/include/arch/istate.h istate->cr_iip = retaddr;
istate 56 kernel/arch/ia64/include/arch/istate.h istate->cr_ipsr.ri = 0; /* return to instruction slot #0 */
istate 59 kernel/arch/ia64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 61 kernel/arch/ia64/include/arch/istate.h return istate->cr_iip;
istate 64 kernel/arch/ia64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 71 kernel/arch/ia64/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 73 kernel/arch/ia64/include/arch/istate.h return istate->cr_ipsr.cpl == PSR_CPL_USER;
istate 131 kernel/arch/ia64/src/interrupt.c void istate_decode(istate_t *istate)
istate 134 kernel/arch/ia64/src/interrupt.c (void *) istate->ar_bsp, (void *) istate->ar_bspstore);
istate 136 kernel/arch/ia64/src/interrupt.c istate->ar_rnat, istate->ar_rsc);
istate 138 kernel/arch/ia64/src/interrupt.c istate->ar_ifs, istate->ar_pfs);
istate 140 kernel/arch/ia64/src/interrupt.c istate->cr_isr.value, istate->cr_ipsr.value);
istate 143 kernel/arch/ia64/src/interrupt.c istate->cr_iip, istate->cr_isr.ei,
istate 144 kernel/arch/ia64/src/interrupt.c symtab_fmt_name_lookup(istate->cr_iip));
istate 145 kernel/arch/ia64/src/interrupt.c printf("cr.iipa=%#0" PRIxPTR "\t(%s)\n", istate->cr_iipa,
istate 146 kernel/arch/ia64/src/interrupt.c symtab_fmt_name_lookup(istate->cr_iipa));
istate 147 kernel/arch/ia64/src/interrupt.c printf("cr.ifa=%#0" PRIxPTR "\t(%s)\n", istate->cr_ifa,
istate 148 kernel/arch/ia64/src/interrupt.c symtab_fmt_name_lookup(istate->cr_ifa));
istate 151 kernel/arch/ia64/src/interrupt.c void general_exception(unsigned int n, istate_t *istate)
istate 155 kernel/arch/ia64/src/interrupt.c switch (istate->cr_isr.ge_code) {
istate 179 kernel/arch/ia64/src/interrupt.c fault_if_from_uspace(istate, "General Exception (%s).", desc);
istate 180 kernel/arch/ia64/src/interrupt.c panic_badtrap(istate, n, "General Exception (%s).", desc);
istate 183 kernel/arch/ia64/src/interrupt.c void disabled_fp_register(unsigned int n, istate_t *istate)
istate 188 kernel/arch/ia64/src/interrupt.c fault_if_from_uspace(istate, "Interruption: %#hx (%s).",
istate 190 kernel/arch/ia64/src/interrupt.c panic_badtrap(istate, n, "Interruption: %#hx (%s).",
istate 198 kernel/arch/ia64/src/interrupt.c sysarg_t break_instruction(unsigned int n, istate_t *istate)
istate 202 kernel/arch/ia64/src/interrupt.c if (istate->cr_iim != BREAK_IMM_SYSCALL) {
istate 203 kernel/arch/ia64/src/interrupt.c fault_if_from_uspace(istate, "Unknown software interrupt: %x",
istate 204 kernel/arch/ia64/src/interrupt.c (uint32_t) istate->cr_iim);
istate 205 kernel/arch/ia64/src/interrupt.c panic_badtrap(istate, n, "Interruption: %#hx (%s).",
istate 212 kernel/arch/ia64/src/interrupt.c if (istate->cr_ipsr.ri == 2) {
istate 213 kernel/arch/ia64/src/interrupt.c istate->cr_ipsr.ri = 0;
istate 214 kernel/arch/ia64/src/interrupt.c istate->cr_iip += 16;
istate 216 kernel/arch/ia64/src/interrupt.c istate->cr_ipsr.ri++;
istate 220 kernel/arch/ia64/src/interrupt.c ret = syscall_handler(istate->in0, istate->in1, istate->in2,
istate 221 kernel/arch/ia64/src/interrupt.c istate->in3, istate->in4, istate->in5, istate->in6);
istate 227 kernel/arch/ia64/src/interrupt.c void universal_handler(unsigned int n, istate_t *istate)
istate 229 kernel/arch/ia64/src/interrupt.c fault_if_from_uspace(istate, "Interruption: %#hx (%s).",
istate 231 kernel/arch/ia64/src/interrupt.c panic_badtrap(istate, n, "Interruption: %#hx (%s).",
istate 242 kernel/arch/ia64/src/interrupt.c void external_interrupt(unsigned int n, istate_t *istate)
istate 466 kernel/arch/ia64/src/mm/tlb.c static bool is_kernel_fault(istate_t *istate, uintptr_t va)
istate 470 kernel/arch/ia64/src/mm/tlb.c if (istate_from_uspace(istate))
istate 484 kernel/arch/ia64/src/mm/tlb.c void alternate_instruction_tlb_fault(unsigned int n, istate_t *istate)
istate 489 kernel/arch/ia64/src/mm/tlb.c assert(istate_from_uspace(istate));
istate 491 kernel/arch/ia64/src/mm/tlb.c va = istate->cr_ifa; /* faulting address */
istate 506 kernel/arch/ia64/src/mm/tlb.c as_page_fault(va, PF_ACCESS_EXEC, istate);
istate 528 kernel/arch/ia64/src/mm/tlb.c static int try_memmap_io_insertion(uintptr_t va, istate_t *istate)
istate 560 kernel/arch/ia64/src/mm/tlb.c fault_if_from_uspace(istate,
istate 575 kernel/arch/ia64/src/mm/tlb.c void alternate_data_tlb_fault(unsigned int n, istate_t *istate)
istate 577 kernel/arch/ia64/src/mm/tlb.c if (istate->cr_isr.sp) {
istate 585 kernel/arch/ia64/src/mm/tlb.c istate->cr_ipsr.ed = true;
istate 589 kernel/arch/ia64/src/mm/tlb.c uintptr_t va = istate->cr_ifa; /* faulting address */
istate 592 kernel/arch/ia64/src/mm/tlb.c if (is_kernel_fault(istate, va)) {
istate 615 kernel/arch/ia64/src/mm/tlb.c if (try_memmap_io_insertion(va, istate))
istate 622 kernel/arch/ia64/src/mm/tlb.c as_page_fault(va, PF_ACCESS_READ, istate);
istate 634 kernel/arch/ia64/src/mm/tlb.c void data_nested_tlb_fault(unsigned int n, istate_t *istate)
istate 645 kernel/arch/ia64/src/mm/tlb.c void data_dirty_bit_fault(unsigned int n, istate_t *istate)
istate 651 kernel/arch/ia64/src/mm/tlb.c va = istate->cr_ifa; /* faulting address */
istate 653 kernel/arch/ia64/src/mm/tlb.c if (is_kernel_fault(istate, va))
istate 670 kernel/arch/ia64/src/mm/tlb.c as_page_fault(va, PF_ACCESS_WRITE, istate);
istate 680 kernel/arch/ia64/src/mm/tlb.c void instruction_access_bit_fault(unsigned int n, istate_t *istate)
istate 685 kernel/arch/ia64/src/mm/tlb.c assert(istate_from_uspace(istate));
istate 687 kernel/arch/ia64/src/mm/tlb.c va = istate->cr_ifa; /* faulting address */
istate 703 kernel/arch/ia64/src/mm/tlb.c as_page_fault(va, PF_ACCESS_EXEC, istate);
istate 713 kernel/arch/ia64/src/mm/tlb.c void data_access_bit_fault(unsigned int n, istate_t *istate)
istate 719 kernel/arch/ia64/src/mm/tlb.c va = istate->cr_ifa; /* faulting address */
istate 721 kernel/arch/ia64/src/mm/tlb.c if (is_kernel_fault(istate, va))
istate 738 kernel/arch/ia64/src/mm/tlb.c if (as_page_fault(va, PF_ACCESS_READ, istate) == AS_PF_FAULT) {
istate 739 kernel/arch/ia64/src/mm/tlb.c fault_if_from_uspace(istate, "Page fault at %p.",
istate 741 kernel/arch/ia64/src/mm/tlb.c panic_memtrap(istate, PF_ACCESS_UNKNOWN, va, NULL);
istate 752 kernel/arch/ia64/src/mm/tlb.c void data_access_rights_fault(unsigned int n, istate_t *istate)
istate 757 kernel/arch/ia64/src/mm/tlb.c assert(istate_from_uspace(istate));
istate 759 kernel/arch/ia64/src/mm/tlb.c va = istate->cr_ifa; /* faulting address */
istate 770 kernel/arch/ia64/src/mm/tlb.c as_page_fault(va, PF_ACCESS_WRITE, istate);
istate 779 kernel/arch/ia64/src/mm/tlb.c void page_not_present(unsigned int n, istate_t *istate)
istate 784 kernel/arch/ia64/src/mm/tlb.c assert(istate_from_uspace(istate));
istate 786 kernel/arch/ia64/src/mm/tlb.c va = istate->cr_ifa; /* faulting address */
istate 802 kernel/arch/ia64/src/mm/tlb.c as_page_fault(va, PF_ACCESS_READ, istate);
istate 40 kernel/arch/mips32/include/arch/cache.h extern void cache_error(istate_t *istate);
istate 74 kernel/arch/mips32/include/arch/exception.h extern void exception(istate_t *istate);
istate 52 kernel/arch/mips32/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 55 kernel/arch/mips32/include/arch/istate.h istate->epc = retaddr;
istate 59 kernel/arch/mips32/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 61 kernel/arch/mips32/include/arch/istate.h return istate->status & cp0_status_um_bit;
istate 64 kernel/arch/mips32/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 66 kernel/arch/mips32/include/arch/istate.h return istate->epc;
istate 69 kernel/arch/mips32/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 71 kernel/arch/mips32/include/arch/istate.h return istate->sp;
istate 171 kernel/arch/mips32/include/arch/mm/tlb.h extern void tlb_invalid(istate_t *istate);
istate 172 kernel/arch/mips32/include/arch/mm/tlb.h extern void tlb_refill(istate_t *istate);
istate 173 kernel/arch/mips32/include/arch/mm/tlb.h extern void tlb_modified(istate_t *istate);
istate 39 kernel/arch/mips32/src/cache.c void cache_error(istate_t *istate)
istate 41 kernel/arch/mips32/src/cache.c panic("cache_error exception (epc=%p).", (void *) istate->epc);
istate 175 kernel/arch/mips32/src/debug/stacktrace.c if (!ctx->istate)
istate 182 kernel/arch/mips32/src/debug/stacktrace.c *prev_fp = ctx->istate->sp;
istate 184 kernel/arch/mips32/src/debug/stacktrace.c *prev_ra = ctx->istate->ra - 8;
istate 185 kernel/arch/mips32/src/debug/stacktrace.c ctx->istate = NULL;
istate 235 kernel/arch/mips32/src/debug/stacktrace.c if (!ctx->istate)
istate 237 kernel/arch/mips32/src/debug/stacktrace.c *prev_ra = ctx->istate->ra - 8;
istate 238 kernel/arch/mips32/src/debug/stacktrace.c ctx->istate = NULL;
istate 331 kernel/arch/mips32/src/debugger.c void debugger_bpoint(istate_t *istate)
istate 340 kernel/arch/mips32/src/debugger.c uintptr_t fireaddr = istate->epc;
istate 396 kernel/arch/mips32/src/debugger.c istate->epc += 4;
istate 405 kernel/arch/mips32/src/debugger.c cur->bkfunc(cur, istate);
istate 74 kernel/arch/mips32/src/exception.c void istate_decode(istate_t *istate)
istate 78 kernel/arch/mips32/src/exception.c istate->epc, istate->status, istate->lo, istate->hi);
istate 82 kernel/arch/mips32/src/exception.c istate->a0, istate->a1, istate->a2, istate->a3);
istate 86 kernel/arch/mips32/src/exception.c istate->t0, istate->t1, istate->t2, istate->t3);
istate 90 kernel/arch/mips32/src/exception.c istate->t4, istate->t5, istate->t6, istate->t7);
istate 94 kernel/arch/mips32/src/exception.c istate->t8, istate->t9, istate->v0, istate->v1);
istate 98 kernel/arch/mips32/src/exception.c istate->s0, istate->s1, istate->s2, istate->s3);
istate 102 kernel/arch/mips32/src/exception.c istate->s4, istate->s5, istate->s6, istate->s7);
istate 106 kernel/arch/mips32/src/exception.c istate->s8, istate->at, istate->kt0, istate->kt1);
istate 110 kernel/arch/mips32/src/exception.c istate->sp, istate->ra, istate->gp);
istate 113 kernel/arch/mips32/src/exception.c static void unhandled_exception(unsigned int n, istate_t *istate)
istate 115 kernel/arch/mips32/src/exception.c fault_if_from_uspace(istate, "Unhandled exception %s.", exctable[n]);
istate 116 kernel/arch/mips32/src/exception.c panic_badtrap(istate, n, "Unhandled exception %s.", exctable[n]);
istate 119 kernel/arch/mips32/src/exception.c static void reserved_instr_exception(unsigned int n, istate_t *istate)
istate 121 kernel/arch/mips32/src/exception.c if (*((uint32_t *) istate->epc) == 0x7c03e83b) {
istate 123 kernel/arch/mips32/src/exception.c istate->epc += 4;
istate 124 kernel/arch/mips32/src/exception.c istate->v1 = istate->kt1;
istate 126 kernel/arch/mips32/src/exception.c unhandled_exception(n, istate);
istate 129 kernel/arch/mips32/src/exception.c static void breakpoint_exception(unsigned int n, istate_t *istate)
istate 132 kernel/arch/mips32/src/exception.c debugger_bpoint(istate);
istate 139 kernel/arch/mips32/src/exception.c istate->epc += 4;
istate 143 kernel/arch/mips32/src/exception.c static void tlbmod_exception(unsigned int n, istate_t *istate)
istate 145 kernel/arch/mips32/src/exception.c tlb_modified(istate);
istate 148 kernel/arch/mips32/src/exception.c static void tlbinv_exception(unsigned int n, istate_t *istate)
istate 150 kernel/arch/mips32/src/exception.c tlb_invalid(istate);
istate 154 kernel/arch/mips32/src/exception.c static void cpuns_exception(unsigned int n, istate_t *istate)
istate 159 kernel/arch/mips32/src/exception.c fault_if_from_uspace(istate,
istate 161 kernel/arch/mips32/src/exception.c panic_badtrap(istate, n,
istate 167 kernel/arch/mips32/src/exception.c static void interrupt_exception(unsigned int n, istate_t *istate)
istate 203 kernel/arch/mips32/src/exception.c static void syscall_exception(unsigned int n, istate_t *istate)
istate 205 kernel/arch/mips32/src/exception.c fault_if_from_uspace(istate, "Syscall is handled through shortcut.");
istate 95 kernel/arch/mips32/src/mm/tlb.c void tlb_refill(istate_t *istate)
istate 130 kernel/arch/mips32/src/mm/tlb.c (void) as_page_fault(badvaddr, PF_ACCESS_READ, istate);
istate 137 kernel/arch/mips32/src/mm/tlb.c void tlb_invalid(istate_t *istate)
istate 157 kernel/arch/mips32/src/mm/tlb.c tlb_refill(istate);
istate 194 kernel/arch/mips32/src/mm/tlb.c (void) as_page_fault(badvaddr, PF_ACCESS_READ, istate);
istate 201 kernel/arch/mips32/src/mm/tlb.c void tlb_modified(istate_t *istate)
istate 259 kernel/arch/mips32/src/mm/tlb.c (void) as_page_fault(badvaddr, PF_ACCESS_WRITE, istate);
istate 52 kernel/arch/ppc32/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 55 kernel/arch/ppc32/include/arch/istate.h istate->pc = retaddr;
istate 63 kernel/arch/ppc32/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 65 kernel/arch/ppc32/include/arch/istate.h return (istate->srr1 & MSR_PR) != 0;
istate 68 kernel/arch/ppc32/include/arch/istate.h _NO_TRACE static inline sysarg_t istate_get_pc(istate_t *istate)
istate 70 kernel/arch/ppc32/include/arch/istate.h return istate->pc;
istate 73 kernel/arch/ppc32/include/arch/istate.h _NO_TRACE static inline sysarg_t istate_get_fp(istate_t *istate)
istate 75 kernel/arch/ppc32/include/arch/istate.h return istate->sp;
istate 63 kernel/arch/ppc32/src/interrupt.c void istate_decode(istate_t *istate)
istate 66 kernel/arch/ppc32/src/interrupt.c "r2 =%0#10" PRIx32 "\n", istate->r0, istate->sp, istate->r2);
istate 69 kernel/arch/ppc32/src/interrupt.c "r5 =%0#10" PRIx32 "\n", istate->r3, istate->r4, istate->r5);
istate 72 kernel/arch/ppc32/src/interrupt.c "r8 =%0#10" PRIx32 "\n", istate->r6, istate->r7, istate->r8);
istate 75 kernel/arch/ppc32/src/interrupt.c "r11=%0#10" PRIx32 "\n", istate->r9, istate->r10, istate->r11);
istate 78 kernel/arch/ppc32/src/interrupt.c "r14=%0#10" PRIx32 "\n", istate->r12, istate->r13, istate->r14);
istate 81 kernel/arch/ppc32/src/interrupt.c "r17=%0#10" PRIx32 "\n", istate->r15, istate->r16, istate->r17);
istate 84 kernel/arch/ppc32/src/interrupt.c "r20=%0#10" PRIx32 "\n", istate->r18, istate->r19, istate->r20);
istate 87 kernel/arch/ppc32/src/interrupt.c "r23=%0#10" PRIx32 "\n", istate->r21, istate->r22, istate->r23);
istate 90 kernel/arch/ppc32/src/interrupt.c "r26=%0#10" PRIx32 "\n", istate->r24, istate->r25, istate->r26);
istate 93 kernel/arch/ppc32/src/interrupt.c "r29=%0#10" PRIx32 "\n", istate->r27, istate->r28, istate->r29);
istate 96 kernel/arch/ppc32/src/interrupt.c istate->r30, istate->r31);
istate 99 kernel/arch/ppc32/src/interrupt.c "lr =%0#10" PRIx32 "\n", istate->cr, istate->pc, istate->lr);
istate 102 kernel/arch/ppc32/src/interrupt.c "dar=%0#10" PRIx32 "\n", istate->ctr, istate->xer, istate->dar);
istate 104 kernel/arch/ppc32/src/interrupt.c log_printf("srr1=%0#10" PRIx32 "\n", istate->srr1);
istate 110 kernel/arch/ppc32/src/interrupt.c static void exception_external(unsigned int n, istate_t *istate)
istate 149 kernel/arch/ppc32/src/interrupt.c static void exception_fp_unavailable(unsigned int n, istate_t *istate)
istate 157 kernel/arch/ppc32/src/interrupt.c istate->srr1 |= msr_read() & MSR_FP;
istate 159 kernel/arch/ppc32/src/interrupt.c fault_if_from_uspace(istate, "FPU fault.");
istate 160 kernel/arch/ppc32/src/interrupt.c panic_badtrap(istate, n, "FPU fault.");
istate 164 kernel/arch/ppc32/src/interrupt.c static void exception_decrementer(unsigned int n, istate_t *istate)
istate 58 kernel/arch/ppc32/src/mm/pht.c istate_t *istate, pte_t *pte)
istate 75 kernel/arch/ppc32/src/mm/pht.c if (as_page_fault(badvaddr, access, istate) == AS_PF_OK) {
istate 180 kernel/arch/ppc32/src/mm/pht.c void pht_refill(unsigned int n, istate_t *istate)
istate 185 kernel/arch/ppc32/src/mm/pht.c badvaddr = istate->dar;
istate 187 kernel/arch/ppc32/src/mm/pht.c badvaddr = istate->pc;
istate 191 kernel/arch/ppc32/src/mm/pht.c PF_ACCESS_READ /* FIXME */, istate, &pte);
istate 39 kernel/arch/ppc32/src/mm/tlb.c void tlb_refill(unsigned int n, istate_t *istate)
istate 46 kernel/arch/riscv64/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 52 kernel/arch/riscv64/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 58 kernel/arch/riscv64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 64 kernel/arch/riscv64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 77 kernel/arch/riscv64/src/mm/page.c void page_fault(unsigned int n __attribute__((unused)), istate_t *istate)
istate 128 kernel/arch/riscv64/src/riscv64.c void istate_decode(istate_t *istate)
istate 130 kernel/arch/riscv64/src/riscv64.c (void) istate;
istate 53 kernel/arch/sparc64/include/arch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 56 kernel/arch/sparc64/include/arch/istate.h istate->tpc = retaddr;
istate 59 kernel/arch/sparc64/include/arch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 61 kernel/arch/sparc64/include/arch/istate.h return !(istate->tstate & TSTATE_PRIV_BIT);
istate 64 kernel/arch/sparc64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 66 kernel/arch/sparc64/include/arch/istate.h return istate->tpc;
istate 69 kernel/arch/sparc64/include/arch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 71 kernel/arch/sparc64/include/arch/trap/exception.h extern void dump_istate(istate_t *istate);
istate 69 kernel/arch/sparc64/include/arch/trap/interrupt.h extern void interrupt(unsigned int n, istate_t *istate);
istate 85 kernel/arch/sparc64/src/drivers/tick.c void tick_interrupt(unsigned int n, istate_t *istate)
istate 197 kernel/arch/sparc64/src/mm/sun4u/tlb.c void fast_instruction_access_mmu_miss(unsigned int tt, istate_t *istate)
istate 199 kernel/arch/sparc64/src/mm/sun4u/tlb.c size_t index = (istate->tpc >> MMU_PAGE_WIDTH) % MMU_PAGES_PER_PAGE;
istate 202 kernel/arch/sparc64/src/mm/sun4u/tlb.c bool found = page_mapping_find(AS, istate->tpc, true, &t);
istate 215 kernel/arch/sparc64/src/mm/sun4u/tlb.c page_mapping_update(AS, istate->tpc, true, &t);
istate 221 kernel/arch/sparc64/src/mm/sun4u/tlb.c as_page_fault(istate->tpc, PF_ACCESS_EXEC, istate);
istate 233 kernel/arch/sparc64/src/mm/sun4u/tlb.c void fast_data_access_mmu_miss(unsigned int tt, istate_t *istate)
istate 242 kernel/arch/sparc64/src/mm/sun4u/tlb.c tag.value = istate->tlb_tag_access;
istate 278 kernel/arch/sparc64/src/mm/sun4u/tlb.c as_page_fault(page_16k, PF_ACCESS_READ, istate);
istate 287 kernel/arch/sparc64/src/mm/sun4u/tlb.c void fast_data_access_protection(unsigned int tt, istate_t *istate)
istate 295 kernel/arch/sparc64/src/mm/sun4u/tlb.c tag.value = istate->tlb_tag_access;
istate 326 kernel/arch/sparc64/src/mm/sun4u/tlb.c as_page_fault(page_16k, PF_ACCESS_WRITE, istate);
istate 211 kernel/arch/sparc64/src/mm/sun4v/tlb.c void fast_instruction_access_mmu_miss(unsigned int tt, istate_t *istate)
istate 213 kernel/arch/sparc64/src/mm/sun4v/tlb.c uintptr_t va = ALIGN_DOWN(istate->tpc, PAGE_SIZE);
istate 235 kernel/arch/sparc64/src/mm/sun4v/tlb.c as_page_fault(va, PF_ACCESS_EXEC, istate);
istate 247 kernel/arch/sparc64/src/mm/sun4v/tlb.c void fast_data_access_mmu_miss(unsigned int tt, istate_t *istate)
istate 250 kernel/arch/sparc64/src/mm/sun4v/tlb.c uintptr_t va = DMISS_ADDRESS(istate->tlb_tag_access);
istate 251 kernel/arch/sparc64/src/mm/sun4v/tlb.c uint16_t ctx = DMISS_CONTEXT(istate->tlb_tag_access);
istate 285 kernel/arch/sparc64/src/mm/sun4v/tlb.c as_page_fault(va, PF_ACCESS_READ, istate);
istate 294 kernel/arch/sparc64/src/mm/sun4v/tlb.c void fast_data_access_protection(unsigned int tt, istate_t *istate)
istate 297 kernel/arch/sparc64/src/mm/sun4v/tlb.c uintptr_t va = DMISS_ADDRESS(istate->tlb_tag_access);
istate 298 kernel/arch/sparc64/src/mm/sun4v/tlb.c uint16_t ctx = DMISS_CONTEXT(istate->tlb_tag_access);
istate 326 kernel/arch/sparc64/src/mm/sun4v/tlb.c as_page_fault(va, PF_ACCESS_WRITE, istate);
istate 46 kernel/arch/sparc64/src/trap/exception.c void istate_decode(istate_t *istate)
istate 48 kernel/arch/sparc64/src/trap/exception.c const char *tpcs = symtab_fmt_name_lookup(istate->tpc);
istate 49 kernel/arch/sparc64/src/trap/exception.c const char *tnpcs = symtab_fmt_name_lookup(istate->tnpc);
istate 51 kernel/arch/sparc64/src/trap/exception.c printf("TSTATE=%#" PRIx64 "\n", istate->tstate);
istate 52 kernel/arch/sparc64/src/trap/exception.c printf("TPC=%#" PRIx64 " (%s)\n", istate->tpc, tpcs);
istate 53 kernel/arch/sparc64/src/trap/exception.c printf("TNPC=%#" PRIx64 " (%s)\n", istate->tnpc, tnpcs);
istate 57 kernel/arch/sparc64/src/trap/exception.c void instruction_access_exception(unsigned int n, istate_t *istate)
istate 59 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 60 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 64 kernel/arch/sparc64/src/trap/exception.c void instruction_access_error(unsigned int n, istate_t *istate)
istate 66 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 67 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 71 kernel/arch/sparc64/src/trap/exception.c void illegal_instruction(unsigned int n, istate_t *istate)
istate 73 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 74 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 78 kernel/arch/sparc64/src/trap/exception.c void privileged_opcode(unsigned int n, istate_t *istate)
istate 80 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 81 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 85 kernel/arch/sparc64/src/trap/exception.c void unimplemented_LDD(unsigned int n, istate_t *istate)
istate 87 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 88 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 92 kernel/arch/sparc64/src/trap/exception.c void unimplemented_STD(unsigned int n, istate_t *istate)
istate 94 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 95 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 99 kernel/arch/sparc64/src/trap/exception.c void fp_disabled(unsigned int n, istate_t *istate)
istate 113 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 114 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 119 kernel/arch/sparc64/src/trap/exception.c void fp_exception_ieee_754(unsigned int n, istate_t *istate)
istate 121 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 122 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 126 kernel/arch/sparc64/src/trap/exception.c void fp_exception_other(unsigned int n, istate_t *istate)
istate 128 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 129 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 133 kernel/arch/sparc64/src/trap/exception.c void tag_overflow(unsigned int n, istate_t *istate)
istate 135 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 136 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 140 kernel/arch/sparc64/src/trap/exception.c void division_by_zero(unsigned int n, istate_t *istate)
istate 142 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 143 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 147 kernel/arch/sparc64/src/trap/exception.c void data_access_exception(unsigned int n, istate_t *istate)
istate 149 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 150 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 154 kernel/arch/sparc64/src/trap/exception.c void data_access_error(unsigned int n, istate_t *istate)
istate 156 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 157 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 161 kernel/arch/sparc64/src/trap/exception.c void mem_address_not_aligned(unsigned int n, istate_t *istate)
istate 163 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 164 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 168 kernel/arch/sparc64/src/trap/exception.c void LDDF_mem_address_not_aligned(unsigned int n, istate_t *istate)
istate 170 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 171 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 175 kernel/arch/sparc64/src/trap/exception.c void STDF_mem_address_not_aligned(unsigned int n, istate_t *istate)
istate 177 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 178 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 182 kernel/arch/sparc64/src/trap/exception.c void privileged_action(unsigned int n, istate_t *istate)
istate 184 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 185 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 189 kernel/arch/sparc64/src/trap/exception.c void LDQF_mem_address_not_aligned(unsigned int n, istate_t *istate)
istate 191 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 192 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 196 kernel/arch/sparc64/src/trap/exception.c void STQF_mem_address_not_aligned(unsigned int n, istate_t *istate)
istate 198 kernel/arch/sparc64/src/trap/exception.c fault_if_from_uspace(istate, "%s.", __func__);
istate 199 kernel/arch/sparc64/src/trap/exception.c panic_badtrap(istate, n, "%s.", __func__);
istate 56 kernel/arch/sparc64/src/trap/sun4u/interrupt.c void interrupt(unsigned int n, istate_t *istate)
istate 96 kernel/arch/sparc64/src/trap/sun4v/interrupt.c void cpu_mondo(unsigned int tt, istate_t *istate)
istate 49 kernel/generic/include/panic.h #define panic_badtrap(istate, n, fmt, ...) \
istate 50 kernel/generic/include/panic.h panic_common(PANIC_BADTRAP, istate, 0, n, fmt, ##__VA_ARGS__)
istate 52 kernel/generic/include/panic.h #define panic_memtrap(istate, access, addr, fmt, ...) \
istate 53 kernel/generic/include/panic.h panic_common(PANIC_MEMTRAP, istate, access, addr, fmt, ##__VA_ARGS__)
istate 66 kernel/generic/include/panic.h struct istate;
istate 70 kernel/generic/include/panic.h extern void panic_common(panic_category_t, struct istate *, int,
istate 42 kernel/generic/include/stacktrace.h struct istate;
istate 47 kernel/generic/include/stacktrace.h struct istate *istate;
istate 61 kernel/generic/include/stacktrace.h extern void stack_trace_istate(struct istate *);
istate 47 kernel/generic/src/debug/panic.c void panic_common(panic_category_t cat, istate_t *istate, int access,
istate 110 kernel/generic/src/debug/panic.c if (istate) {
istate 111 kernel/generic/src/debug/panic.c istate_decode(istate);
istate 105 kernel/generic/src/debug/stacktrace.c .istate = NULL
istate 117 kernel/generic/src/debug/stacktrace.c void stack_trace_istate(istate_t *istate)
istate 120 kernel/generic/src/debug/stacktrace.c .fp = istate_get_fp(istate),
istate 121 kernel/generic/src/debug/stacktrace.c .pc = istate_get_pc(istate),
istate 122 kernel/generic/src/debug/stacktrace.c .istate = istate
istate 125 kernel/generic/src/debug/stacktrace.c if (istate_from_uspace(istate))
istate 110 kernel/generic/src/interrupt/interrupt.c _NO_TRACE void exc_dispatch(unsigned int n, istate_t *istate)
istate 131 kernel/generic/src/interrupt/interrupt.c THREAD->udebug.uspace_state = istate;
istate 134 kernel/generic/src/interrupt/interrupt.c exc_table[n].handler(n + IVT_FIRST, istate);
istate 142 kernel/generic/src/interrupt/interrupt.c if ((THREAD) && (THREAD->interrupted) && (istate_from_uspace(istate)))
istate 164 kernel/generic/src/interrupt/interrupt.c _NO_TRACE static void exc_undef(unsigned int n, istate_t *istate)
istate 166 kernel/generic/src/interrupt/interrupt.c fault_if_from_uspace(istate, "Unhandled exception %u.", n);
istate 167 kernel/generic/src/interrupt/interrupt.c panic_badtrap(istate, n, "Unhandled exception %u.", n);
istate 171 kernel/generic/src/interrupt/interrupt.c fault_from_uspace_core(istate_t *istate, const char *fmt, va_list args)
istate 175 kernel/generic/src/interrupt/interrupt.c (void *) istate_get_pc(istate));
istate 177 kernel/generic/src/interrupt/interrupt.c istate_decode(istate);
istate 178 kernel/generic/src/interrupt/interrupt.c stack_trace_istate(istate);
istate 190 kernel/generic/src/interrupt/interrupt.c _NO_TRACE void fault_from_uspace(istate_t *istate, const char *fmt, ...)
istate 195 kernel/generic/src/interrupt/interrupt.c fault_from_uspace_core(istate, fmt, args);
istate 202 kernel/generic/src/interrupt/interrupt.c _NO_TRACE void fault_if_from_uspace(istate_t *istate, const char *fmt, ...)
istate 204 kernel/generic/src/interrupt/interrupt.c if (!istate_from_uspace(istate))
istate 209 kernel/generic/src/interrupt/interrupt.c fault_from_uspace_core(istate, fmt, args);
istate 1512 kernel/generic/src/mm/as.c int as_page_fault(uintptr_t address, pf_access_t access, istate_t *istate)
istate 1592 kernel/generic/src/mm/as.c istate_set_retaddr(istate,
istate 1596 kernel/generic/src/mm/as.c istate_set_retaddr(istate,
istate 1603 kernel/generic/src/mm/as.c fault_if_from_uspace(istate, "Page fault: %p.", (void *) address);
istate 1604 kernel/generic/src/mm/as.c panic_memtrap(istate, access, address, NULL);
istate 342 kernel/generic/src/proc/scheduler.c istate_t *istate = THREAD->udebug.uspace_state;
istate 343 kernel/generic/src/proc/scheduler.c if (istate != NULL) {
istate 345 kernel/generic/src/proc/scheduler.c stack_trace_istate(istate);
istate 196 kernel/generic/src/time/clock.c istate_t *istate = THREAD->udebug.uspace_state;
istate 197 kernel/generic/src/time/clock.c if ((istate) && (istate_from_uspace(istate)))
istate 88 uspace/app/taskdump/elf_core.c async_sess_t *sess, istate_t *istate)
istate 117 uspace/app/taskdump/elf_core.c istate_to_elf_regs(istate, &pr_status.regs);
istate 361 uspace/app/taskdump/taskdump.c istate_t istate;
istate 366 uspace/app/taskdump/taskdump.c rc = udebug_regs_read(sess, thash, &istate);
istate 372 uspace/app/taskdump/taskdump.c pc = istate_get_pc(&istate);
istate 373 uspace/app/taskdump/taskdump.c fp = istate_get_fp(&istate);
istate 376 uspace/app/taskdump/taskdump.c reg_state = istate;
istate 43 uspace/lib/c/arch/abs32le/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 45 uspace/lib/c/arch/abs32le/include/libarch/elf_linux.h (void) istate;
istate 64 uspace/lib/c/arch/abs32le/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 65 uspace/lib/c/arch/abs32le/include/libarch/istate.h REQUIRES_EXTENT_MUTABLE(istate)
istate 72 uspace/lib/c/arch/abs32le/include/libarch/istate.h return !(istate->ip & UINT32_C(0x80000000));
istate 75 uspace/lib/c/arch/abs32le/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 77 uspace/lib/c/arch/abs32le/include/libarch/istate.h WRITES(&istate->ip)
istate 81 uspace/lib/c/arch/abs32le/include/libarch/istate.h istate->ip = retaddr;
istate 84 uspace/lib/c/arch/abs32le/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 85 uspace/lib/c/arch/abs32le/include/libarch/istate.h REQUIRES_EXTENT_MUTABLE(istate)
istate 89 uspace/lib/c/arch/abs32le/include/libarch/istate.h return istate->ip;
istate 92 uspace/lib/c/arch/abs32le/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 93 uspace/lib/c/arch/abs32le/include/libarch/istate.h REQUIRES_EXTENT_MUTABLE(istate)
istate 97 uspace/lib/c/arch/abs32le/include/libarch/istate.h return istate->fp;
istate 83 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 85 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->r15 = istate->r15;
istate 86 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->r14 = istate->r14;
istate 87 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->r13 = istate->r13;
istate 88 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->r12 = istate->r12;
istate 89 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rbp = istate->rbp;
istate 90 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rbx = istate->rbx;
istate 91 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->r11 = istate->r11;
istate 92 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->r10 = istate->r10;
istate 93 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->r9 = istate->r9;
istate 94 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->r8 = istate->r8;
istate 95 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rax = istate->rax;
istate 96 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rcx = istate->rcx;
istate 97 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rdx = istate->rdx;
istate 98 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rsi = istate->rsi;
istate 99 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rdi = istate->rdi;
istate 100 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rip = istate->rip;
istate 101 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->cs = istate->cs;
istate 102 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rflags = istate->rflags;
istate 103 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->rsp = istate->rsp;
istate 104 uspace/lib/c/arch/amd64/include/libarch/elf_linux.h elf_regs->ss = istate->ss;
istate 49 uspace/lib/c/arch/amd64/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 51 uspace/lib/c/arch/amd64/include/libarch/istate.h return (istate->cs & RPL_USER) == RPL_USER;
istate 54 uspace/lib/c/arch/amd64/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 57 uspace/lib/c/arch/amd64/include/libarch/istate.h istate->rip = retaddr;
istate 60 uspace/lib/c/arch/amd64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 62 uspace/lib/c/arch/amd64/include/libarch/istate.h return istate->rip;
istate 65 uspace/lib/c/arch/amd64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 67 uspace/lib/c/arch/amd64/include/libarch/istate.h return istate->rbp;
istate 68 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 70 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r0 = istate->r0;
istate 71 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r1 = istate->r1;
istate 72 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r2 = istate->r2;
istate 73 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r3 = istate->r3;
istate 74 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r4 = istate->r4;
istate 75 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r5 = istate->r5;
istate 76 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r6 = istate->r6;
istate 77 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r7 = istate->r7;
istate 78 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r8 = istate->r8;
istate 79 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r9 = istate->r9;
istate 80 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r10 = istate->r10;
istate 82 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->fp = istate->fp;
istate 83 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->r12 = istate->r12;
istate 84 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->sp = istate->sp;
istate 85 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->lr = istate->lr;
istate 86 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->pc = istate->pc;
istate 87 uspace/lib/c/arch/arm32/include/libarch/elf_linux.h elf_regs->cpsr = istate->spsr;
istate 57 uspace/lib/c/arch/arm32/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 60 uspace/lib/c/arch/arm32/include/libarch/istate.h istate->pc = retaddr;
istate 64 uspace/lib/c/arch/arm32/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 66 uspace/lib/c/arch/arm32/include/libarch/istate.h return (istate->spsr & STATUS_REG_MODE_MASK) == USER_MODE;
istate 70 uspace/lib/c/arch/arm32/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 72 uspace/lib/c/arch/arm32/include/libarch/istate.h return istate->pc;
istate 75 uspace/lib/c/arch/arm32/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 77 uspace/lib/c/arch/arm32/include/libarch/istate.h return istate->fp;
istate 88 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 90 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x0 = istate->x0;
istate 91 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x1 = istate->x1;
istate 92 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x2 = istate->x2;
istate 93 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x3 = istate->x3;
istate 94 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x4 = istate->x4;
istate 95 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x5 = istate->x5;
istate 96 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x6 = istate->x6;
istate 97 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x7 = istate->x7;
istate 98 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x8 = istate->x8;
istate 99 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x9 = istate->x9;
istate 100 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x10 = istate->x10;
istate 101 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x11 = istate->x11;
istate 102 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x12 = istate->x12;
istate 103 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x13 = istate->x13;
istate 104 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x14 = istate->x14;
istate 105 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x15 = istate->x15;
istate 106 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x16 = istate->x16;
istate 107 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x17 = istate->x17;
istate 108 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x18 = istate->x18;
istate 109 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x19 = istate->x19;
istate 110 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x20 = istate->x20;
istate 111 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x21 = istate->x21;
istate 112 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x22 = istate->x22;
istate 113 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x23 = istate->x23;
istate 114 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x24 = istate->x24;
istate 115 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x25 = istate->x25;
istate 116 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x26 = istate->x26;
istate 117 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x27 = istate->x27;
istate 118 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x28 = istate->x28;
istate 119 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x29 = istate->x29;
istate 120 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->x30 = istate->x30;
istate 122 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->sp = istate->sp;
istate 123 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->pc = istate->pc;
istate 124 uspace/lib/c/arch/arm64/include/libarch/elf_linux.h elf_regs->pstate = istate->spsr;
istate 56 uspace/lib/c/arch/arm64/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 59 uspace/lib/c/arch/arm64/include/libarch/istate.h istate->pc = retaddr;
istate 63 uspace/lib/c/arch/arm64/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 65 uspace/lib/c/arch/arm64/include/libarch/istate.h return (istate->spsr & SPSR_MODE_MASK) >> SPSR_MODE_SHIFT ==
istate 70 uspace/lib/c/arch/arm64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 72 uspace/lib/c/arch/arm64/include/libarch/istate.h return istate->pc;
istate 76 uspace/lib/c/arch/arm64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 78 uspace/lib/c/arch/arm64/include/libarch/istate.h return istate->x29;
istate 67 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 69 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->ebx = istate->ebx;
istate 70 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->ecx = istate->ecx;
istate 71 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->edx = istate->edx;
istate 72 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->esi = istate->esi;
istate 73 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->edi = istate->edi;
istate 74 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->ebp = istate->ebp;
istate 75 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->eax = istate->eax;
istate 77 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->ds = istate->ds;
istate 78 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->es = istate->es;
istate 79 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->fs = istate->fs;
istate 80 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->gs = istate->gs;
istate 83 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->eip = istate->eip;
istate 84 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->cs = istate->cs;
istate 85 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->eflags = istate->eflags;
istate 86 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->esp = istate->esp;
istate 87 uspace/lib/c/arch/ia32/include/libarch/elf_linux.h elf_regs->ss = istate->ss;
istate 49 uspace/lib/c/arch/ia32/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 51 uspace/lib/c/arch/ia32/include/libarch/istate.h return (istate->cs & RPL_USER) == RPL_USER;
istate 54 uspace/lib/c/arch/ia32/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 57 uspace/lib/c/arch/ia32/include/libarch/istate.h istate->eip = retaddr;
istate 60 uspace/lib/c/arch/ia32/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 62 uspace/lib/c/arch/ia32/include/libarch/istate.h return istate->eip;
istate 65 uspace/lib/c/arch/ia32/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 67 uspace/lib/c/arch/ia32/include/libarch/istate.h return istate->ebp;
istate 46 uspace/lib/c/arch/ia64/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 49 uspace/lib/c/arch/ia64/include/libarch/elf_linux.h (void) istate;
istate 52 uspace/lib/c/arch/ia64/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 55 uspace/lib/c/arch/ia64/include/libarch/istate.h istate->cr_iip = retaddr;
istate 56 uspace/lib/c/arch/ia64/include/libarch/istate.h istate->cr_ipsr.ri = 0; /* return to instruction slot #0 */
istate 59 uspace/lib/c/arch/ia64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 61 uspace/lib/c/arch/ia64/include/libarch/istate.h return istate->cr_iip;
istate 64 uspace/lib/c/arch/ia64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 71 uspace/lib/c/arch/ia64/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 73 uspace/lib/c/arch/ia64/include/libarch/istate.h return istate->cr_ipsr.cpl == PSR_CPL_USER;
istate 91 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 93 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r1 = istate->at;
istate 94 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r2 = istate->v0;
istate 95 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r3 = istate->v1;
istate 96 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r4 = istate->a0;
istate 97 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r5 = istate->a1;
istate 98 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r6 = istate->a2;
istate 99 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r7 = istate->a3;
istate 100 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r8 = istate->t0;
istate 101 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r9 = istate->t1;
istate 102 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r10 = istate->t2;
istate 103 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r11 = istate->t3;
istate 104 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r12 = istate->t4;
istate 105 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r13 = istate->t5;
istate 106 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r14 = istate->t6;
istate 107 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r15 = istate->t7;
istate 108 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r16 = istate->s0;
istate 109 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r17 = istate->s1;
istate 110 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r18 = istate->s2;
istate 111 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r19 = istate->s3;
istate 112 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r20 = istate->s4;
istate 113 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r21 = istate->s5;
istate 114 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r22 = istate->s6;
istate 115 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r23 = istate->s7;
istate 116 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r24 = istate->t8;
istate 117 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r25 = istate->t9;
istate 118 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r26 = istate->kt0;
istate 119 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r27 = istate->kt1;
istate 120 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r28 = istate->gp;
istate 121 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r29 = istate->sp;
istate 122 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r30 = istate->s8;
istate 123 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->r31 = istate->ra;
istate 125 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->cp0_status = istate->status;
istate 126 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->hi = istate->hi;
istate 127 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->lo = istate->lo;
istate 128 uspace/lib/c/arch/mips32/include/libarch/elf_linux.h elf_regs->cp0_epc = istate->epc;
istate 52 uspace/lib/c/arch/mips32/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 55 uspace/lib/c/arch/mips32/include/libarch/istate.h istate->epc = retaddr;
istate 59 uspace/lib/c/arch/mips32/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 61 uspace/lib/c/arch/mips32/include/libarch/istate.h return istate->status & cp0_status_um_bit;
istate 64 uspace/lib/c/arch/mips32/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 66 uspace/lib/c/arch/mips32/include/libarch/istate.h return istate->epc;
istate 69 uspace/lib/c/arch/mips32/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 71 uspace/lib/c/arch/mips32/include/libarch/istate.h return istate->sp;
istate 95 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 97 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r0 = istate->r0;
istate 98 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r1 = istate->sp;
istate 99 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r2 = istate->r2;
istate 100 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r3 = istate->r3;
istate 101 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r4 = istate->r4;
istate 102 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r5 = istate->r5;
istate 103 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r6 = istate->r6;
istate 104 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r7 = istate->r7;
istate 105 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r8 = istate->r8;
istate 106 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r9 = istate->r9;
istate 107 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r10 = istate->r10;
istate 108 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r11 = istate->r11;
istate 109 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r12 = istate->r12;
istate 110 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r13 = istate->r13;
istate 111 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r14 = istate->r14;
istate 112 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r15 = istate->r15;
istate 113 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r16 = istate->r16;
istate 114 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r17 = istate->r17;
istate 115 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r18 = istate->r18;
istate 116 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r19 = istate->r19;
istate 117 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r20 = istate->r20;
istate 118 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r21 = istate->r21;
istate 119 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r22 = istate->r22;
istate 120 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r23 = istate->r23;
istate 121 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r24 = istate->r24;
istate 122 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r25 = istate->r25;
istate 123 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r26 = istate->r26;
istate 124 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r27 = istate->r27;
istate 125 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r28 = istate->r28;
istate 126 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r29 = istate->r29;
istate 127 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r30 = istate->r30;
istate 128 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->r31 = istate->r31;
istate 130 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->ctr = istate->ctr;
istate 131 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->link = istate->lr;
istate 132 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->xer = istate->xer;
istate 133 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->ccr = istate->cr;
istate 134 uspace/lib/c/arch/ppc32/include/libarch/elf_linux.h elf_regs->dar = istate->dar;
istate 52 uspace/lib/c/arch/ppc32/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 55 uspace/lib/c/arch/ppc32/include/libarch/istate.h istate->pc = retaddr;
istate 63 uspace/lib/c/arch/ppc32/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 65 uspace/lib/c/arch/ppc32/include/libarch/istate.h return (istate->srr1 & MSR_PR) != 0;
istate 68 uspace/lib/c/arch/ppc32/include/libarch/istate.h _NO_TRACE static inline sysarg_t istate_get_pc(istate_t *istate)
istate 70 uspace/lib/c/arch/ppc32/include/libarch/istate.h return istate->pc;
istate 73 uspace/lib/c/arch/ppc32/include/libarch/istate.h _NO_TRACE static inline sysarg_t istate_get_fp(istate_t *istate)
istate 75 uspace/lib/c/arch/ppc32/include/libarch/istate.h return istate->sp;
istate 43 uspace/lib/c/arch/riscv64/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 45 uspace/lib/c/arch/riscv64/include/libarch/elf_linux.h (void) istate;
istate 46 uspace/lib/c/arch/riscv64/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 52 uspace/lib/c/arch/riscv64/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 58 uspace/lib/c/arch/riscv64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 64 uspace/lib/c/arch/riscv64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
istate 46 uspace/lib/c/arch/sparc64/include/libarch/elf_linux.h static inline void istate_to_elf_regs(istate_t *istate, elf_regs_t *elf_regs)
istate 49 uspace/lib/c/arch/sparc64/include/libarch/elf_linux.h (void) istate;
istate 53 uspace/lib/c/arch/sparc64/include/libarch/istate.h _NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
istate 56 uspace/lib/c/arch/sparc64/include/libarch/istate.h istate->tpc = retaddr;
istate 59 uspace/lib/c/arch/sparc64/include/libarch/istate.h _NO_TRACE static inline int istate_from_uspace(istate_t *istate)
istate 61 uspace/lib/c/arch/sparc64/include/libarch/istate.h return !(istate->tstate & TSTATE_PRIV_BIT);
istate 64 uspace/lib/c/arch/sparc64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)
istate 66 uspace/lib/c/arch/sparc64/include/libarch/istate.h return istate->tpc;
istate 69 uspace/lib/c/arch/sparc64/include/libarch/istate.h _NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)
HelenOS homepage, sources at GitHub