AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
x86_regs Struct Reference

The registers an interrupt or exception saved, on the kernel stack, as cpu.S's stubs push them: the general registers, the stub's vector and error code, then what the CPU pushed. More...

#include <cpu.h>

Data Fields

uint64_t r15
uint64_t r14
uint64_t r13
uint64_t r12
uint64_t r11
uint64_t r10
uint64_t r9
uint64_t r8
uint64_t rdi
uint64_t rsi
uint64_t rbp
uint64_t rbx
uint64_t rcx
uint64_t rdx
uint64_t rax
uint64_t vec
uint64_t err
uint64_t rip
uint64_t cs
uint64_t rflags
uint64_t rsp
uint64_t ss

Detailed Description

The registers an interrupt or exception saved, on the kernel stack, as cpu.S's stubs push them: the general registers, the stub's vector and error code, then what the CPU pushed.

Definition at line 12 of file cpu.h.

Field Documentation

◆ cs

◆ err

uint64_t x86_regs::err

Definition at line 23 of file cpu.h.

Referenced by arch_proc_fork(), and isr_dispatch().

◆ r10

uint64_t x86_regs::r10

Definition at line 21 of file cpu.h.

Referenced by arch_syscall(), and x86_dump_registers().

◆ r11

uint64_t x86_regs::r11

Definition at line 21 of file cpu.h.

Referenced by x86_dump_registers().

◆ r12

uint64_t x86_regs::r12

Definition at line 21 of file cpu.h.

Referenced by x86_dump_registers().

◆ r13

uint64_t x86_regs::r13

Definition at line 21 of file cpu.h.

Referenced by x86_dump_registers().

◆ r14

uint64_t x86_regs::r14

Definition at line 21 of file cpu.h.

Referenced by x86_dump_registers().

◆ r15

uint64_t x86_regs::r15

Definition at line 21 of file cpu.h.

Referenced by x86_dump_registers().

◆ r8

uint64_t x86_regs::r8

Definition at line 21 of file cpu.h.

Referenced by arch_syscall(), and x86_dump_registers().

◆ r9

uint64_t x86_regs::r9

Definition at line 21 of file cpu.h.

Referenced by x86_dump_registers().

◆ rax

uint64_t x86_regs::rax

Definition at line 22 of file cpu.h.

Referenced by arch_syscall(), arch_syscall_return(), and x86_dump_registers().

◆ rbp

uint64_t x86_regs::rbp

Definition at line 22 of file cpu.h.

Referenced by x86_dump_registers().

◆ rbx

uint64_t x86_regs::rbx

Definition at line 22 of file cpu.h.

Referenced by x86_dump_registers().

◆ rcx

uint64_t x86_regs::rcx

Definition at line 22 of file cpu.h.

Referenced by x86_dump_registers().

◆ rdi

uint64_t x86_regs::rdi

Definition at line 22 of file cpu.h.

Referenced by arch_syscall(), deliver(), and x86_dump_registers().

◆ rdx

uint64_t x86_regs::rdx

Definition at line 22 of file cpu.h.

Referenced by arch_syscall(), deliver(), and x86_dump_registers().

◆ rflags

uint64_t x86_regs::rflags

Definition at line 24 of file cpu.h.

Referenced by x86_dump_registers().

◆ rip

uint64_t x86_regs::rip

Definition at line 24 of file cpu.h.

Referenced by isr_dispatch(), uaccess_fixup(), and x86_dump_registers().

◆ rsi

uint64_t x86_regs::rsi

Definition at line 22 of file cpu.h.

Referenced by arch_syscall(), deliver(), and x86_dump_registers().

◆ rsp

uint64_t x86_regs::rsp

Definition at line 24 of file cpu.h.

Referenced by x86_dump_registers().

◆ ss

uint64_t x86_regs::ss

Definition at line 24 of file cpu.h.

Referenced by arch_sigreturn(), and x86_dump_registers().

◆ vec

uint64_t x86_regs::vec

Definition at line 23 of file cpu.h.

Referenced by __x86_irq_handler(), irq_handle(), and isr_dispatch().


The documentation for this struct was generated from the following file:
  • kernel/arch/i386/include/cpu/cpu.h