aboutsummaryrefslogtreecommitdiff
path: root/lib/std/c/darwin/aarch64.zig
blob: 70153b5dfb2a8ba7108acf1f403fed3faaa7d28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// See C headers in
// lib/libc/include/aarch64-macos.12-gnu/mach/arm/_structs.h

pub const exception_state = extern struct {
    far: u64, // Virtual Fault Address
    esr: u32, // Exception syndrome
    exception: u32, // Number of arm exception taken
};

pub const thread_state = extern struct {
    regs: [29]u64, // General purpose registers
    fp: u64, // Frame pointer x29
    lr: u64, // Link register x30
    sp: u64, // Stack pointer x31
    pc: u64, // Program counter
    cpsr: u32, // Current program status register
    __pad: u32,
};