Lines Matching full:cs
48 bool z_x86_check_stack_bounds(uintptr_t addr, size_t size, uint16_t cs) in z_x86_check_stack_bounds() argument
66 } else if ((cs & 0x3U) == 0U && in z_x86_check_stack_bounds()
68 /* The low two bits of the CS register is the privilege in z_x86_check_stack_bounds()
112 static void unwind_stack(uintptr_t base_ptr, uint16_t cs) in unwind_stack() argument
138 sizeof(*frame), cs)) { in unwind_stack()
163 if ((esf->cs & 0x3) != 0) { in get_cr3()
192 LOG_ERR("RSP: 0x%016lx RFLAGS: 0x%016lx CS: 0x%04lx CR3: 0x%016lx", in dump_regs()
193 esf->rsp, esf->rflags, esf->cs & 0xFFFFU, get_cr3(esf)); in dump_regs()
200 unwind_stack(esf->rbp, esf->cs); in dump_regs()
211 LOG_ERR("EFLAGS: 0x%08x CS: 0x%04x CR3: 0x%08lx", esf->eflags, in dump_regs()
212 esf->cs & 0xFFFFU, get_cr3(esf)); in dump_regs()
219 unwind_stack(esf->ebp, esf->cs); in dump_regs()
384 /* Protection ring is lowest 2 bits in interrupted CS */ in z_x86_page_fault_handler()
385 bool was_user = ((esf->cs & 0x3) != 0U); in z_x86_page_fault_handler()
440 if (z_x86_check_stack_bounds(esf_get_sp(esf), 0, esf->cs)) { in z_x86_page_fault_handler()
465 if ((esf->cs & 0x3) != 0 && !(reason == K_ERR_KERNEL_OOPS || in z_x86_do_kernel_oops()