Skip to content

Commit 76ce631

Browse files
committed
linux/glibc tagged ptr supports for arm64 control addition.
1 parent fc10a37 commit 76ce631

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

libc-test/semver/linux-aarch64.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ BPF_XOR
4040
CIBAUD
4141
MADV_SOFT_OFFLINE
4242
MAP_SYNC
43+
PR_GET_TAGGED_ADDR_CTRL
44+
PR_SET_TAGGED_ADDR_CTRL
45+
PR_TAGGED_ADDR_ENABLE
4346
SIGSTKFLT
4447
SIGUNUSED
4548
SKF_AD_ALU_XOR_X

src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,12 @@ pub const HWCAP_PACG: ::c_ulong = 1 << 31;
573573
//pub const HWCAP2_SVESM4: ::c_ulong = 1 << 6;
574574
//pub const HWCAP2_FLAGM2: ::c_ulong = 1 << 7;
575575
//pub const HWCAP2_FRINT: ::c_ulong = 1 << 8;
576+
//pub const HWCAP2_MTE: ::c_ulong = 1 << 18;
577+
578+
// linux/prctl.h
579+
pub const PR_SET_TAGGED_ADDR_CTRL: ::c_int = 55;
580+
pub const PR_GET_TAGGED_ADDR_CTRL: ::c_int = 56;
581+
pub const PR_TAGGED_ADDR_ENABLE: ::c_ulong = 1;
576582

577583
// Syscall table
578584
pub const SYS_io_setup: ::c_long = 0;

0 commit comments

Comments
 (0)