Skip to content

Commit

Permalink
Auto merge of #3116 - devnexen:prctl_upd_arm64, r=JohnTitor
Browse files Browse the repository at this point in the history
prctl SME flags for gnu arm64.
  • Loading branch information
bors committed Feb 12, 2023
2 parents 35ad929 + 92bc39d commit d7917f7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,13 @@ pub const PR_PAC_APDAKEY: ::c_ulong = 1 << 2;
pub const PR_PAC_APDBKEY: ::c_ulong = 1 << 3;
pub const PR_PAC_APGAKEY: ::c_ulong = 1 << 4;

pub const PR_SME_SET_VL: ::c_int = 63;
pub const PR_SME_GET_VL: ::c_int = 64;
pub const PR_SME_VL_LEN_MAX: ::c_int = 0xffff;

pub const PR_SME_SET_VL_INHERIT: ::c_ulong = 1 << 17;
pub const PR_SME_SET_VL_ONE_EXEC: ::c_ulong = 1 << 18;

// Syscall table
pub const SYS_io_setup: ::c_long = 0;
pub const SYS_io_destroy: ::c_long = 1;
Expand Down

0 comments on commit d7917f7

Please sign in to comment.