Skip to content

Commit

Permalink
Match arm definitions with winsdk
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbai committed Dec 25, 2024
1 parent f1e48a6 commit d468f71
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/windows_sys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,18 @@ cfg_if::cfg_if! {

#[repr(C)]
#[derive(Clone, Copy)]
pub struct CONTEXT_u([u64; 32]);
pub struct NEON128 {
pub Low: u64,
pub High: i64,
}

#[repr(C)]
#[derive(Clone, Copy)]
pub union CONTEXT_FloatRegs{
pub Q: [NEON128; 16],
pub D: [u64; 32],
pub S: [u32; 32],
}

#[repr(C)]
#[derive(Clone, Copy)]
Expand All @@ -272,13 +283,16 @@ cfg_if::cfg_if! {
pub R10: u32,
pub R11: u32,
pub R12: u32,
// Control registers
pub Sp: u32,
pub Lr: u32,
pub Pc: u32,
pub Cpsr: u32,
// Floating-point registers
pub Fpsrc: u32,
pub Padding: u32,
pub u: CONTEXT_u,
pub u: CONTEXT_FloatRegs,
// Debug registers
pub Bvr: [u32; ARM_MAX_BREAKPOINTS],
pub Bcr: [u32; ARM_MAX_BREAKPOINTS],
pub Wvr: [u32; ARM_MAX_WATCHPOINTS],
Expand Down

0 comments on commit d468f71

Please sign in to comment.