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

What an exception saves on the kernel stack (cpu/vectors.S): the context it interrupted. More...

#include <cpu.h>

Data Fields

uint64_t x [31]
uint64_t sp
uint64_t pc
uint64_t pstate
uint64_t orig_x0
uint64_t esr

Detailed Description

What an exception saves on the kernel stack (cpu/vectors.S): the context it interrupted.

orig_x0 is a system call's first argument, because the call's result replaces it in x[0], and a restart needs it back.

Definition at line 12 of file cpu.h.

Field Documentation

◆ esr

uint64_t aarch64_regs::esr

Definition at line 18 of file cpu.h.

Referenced by abort(), dump(), and sync_dispatch().

◆ orig_x0

uint64_t aarch64_regs::orig_x0

Definition at line 17 of file cpu.h.

Referenced by aarch64_return_to_user().

◆ pc

uint64_t aarch64_regs::pc

Definition at line 15 of file cpu.h.

Referenced by aarch64_return_to_user(), deliver(), dump(), sync_dispatch(), and uaccess_fixup().

◆ pstate

uint64_t aarch64_regs::pstate

Definition at line 16 of file cpu.h.

Referenced by arch_sigreturn(), deliver(), and dump().

◆ sp

uint64_t aarch64_regs::sp

Definition at line 14 of file cpu.h.

Referenced by arch_sigreturn(), deliver(), and dump().

◆ x

uint64_t aarch64_regs::x[31]

Definition at line 13 of file cpu.h.

Referenced by aarch64_return_to_user(), arch_syscall(), arch_syscall_return(), deliver(), and dump().


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