Skip to content

Commit 7f9adf8

Browse files
committed
Auto merge of #3231 - devnexen:fbsd_procctl_x8664, r=JohnTitor
freebsd add few more procctl x86_64 constants.
2 parents 0b758af + e979ba6 commit 7f9adf8

File tree

1 file changed

+7
-0
lines changed
  • src/unix/bsd/freebsdlike/freebsd/freebsd14

1 file changed

+7
-0
lines changed

src/unix/bsd/freebsdlike/freebsd/freebsd14/x86_64.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,10 @@ pub const PROC_KPTI_CTL_ENABLE_ON_EXEC: ::c_int = 1;
33
pub const PROC_KPTI_CTL_DISABLE_ON_EXEC: ::c_int = 2;
44
pub const PROC_KPTI_STATUS: ::c_int = ::PROC_PROCCTL_MD_MIN + 1;
55
pub const PROC_KPTI_STATUS_ACTIVE: ::c_int = 0x80000000;
6+
pub const PROC_LA_CTL: ::c_int = ::PROC_PROCCTL_MD_MIN + 2;
7+
pub const PROC_LA_STATUS: ::c_int = ::PROC_PROCCTL_MD_MIN + 3;
8+
pub const PROC_LA_CTL_LA48_ON_EXEC: ::c_int = 1;
9+
pub const PROC_LA_CTL_LA57_ON_EXEC: ::c_int = 2;
10+
pub const PROC_LA_CTL_DEFAULT_ON_EXEC: ::c_int = 3;
11+
pub const PROC_LA_STATUS_LA48: ::c_int = 0x01000000;
12+
pub const PROC_LA_STATUS_LA57: ::c_int = 0x02000000;

0 commit comments

Comments
 (0)