zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 643c9868380a9fd34f2154beecfe36cbd9e2f688 (tree)
parent 004711310a6b71e5145a73e4884866671dfdc54d
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 31 Jul 2023 10:50:27 -0700

Revert "std.c: freebsd fix typo for PROC.PROCCTL_MD_MIN constant."

This reverts commit e9dd0a22f0d93683f97db747be53d8d2d21c3543.

Diffstat:
Mlib/std/c/freebsd.zig | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig @@ -2464,8 +2464,8 @@ pub const PROC = struct { // x86_64-only constants pub const KPTI = switch (builtin.cpu.arch) { .x86_64 => struct { - pub const CTL = PROC.PROCCTL_MD_MIN; - pub const STATUS = PROC.PROCCTL_MD_MIN + 1; + pub const CTL = PROC.PROCCTL_MD_MIND; + pub const STATUS = PROC.PROCCTL_MD_MIND + 1; pub const CTL_ENABLE_ON_EXEC = 1; pub const CTL_DISABLE_ON_EXEC = 2; pub const STATUS_ACTIVE = 0x80000000; @@ -2474,8 +2474,8 @@ pub const PROC = struct { }; pub const LA = switch (builtin.cpu.arch) { .x86_64 => struct { - pub const CTL = PROC.PROCCTL_MD_MIN + 2; - pub const STATUS = PROC.PROCCTL_MD_MIN + 3; + pub const CTL = PROC.PROCCTL_MD_MIND + 2; + pub const STATUS = PROC.PROCCTL_MD_MIND + 3; pub const CTL_LA48_ON_EXEC = 1; pub const CTL_LA57_ON_EXEC = 2; pub const CTL_DEFAULT_ON_EXEC = 3;