authorgravatar for devnexen@gmail.comDavid Carlier <devnexen@gmail.com> 2023-06-24 13:33:45+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-24 12:59:18-07:00
loge9dd0a22f0d93683f97db747be53d8d2d21c3543
treefb5fb47bcc8fb8f0e35a48e4dad6024c626f57e5
parentf10b9e8fd72aae33b127c18e3f8a64a4f56b1b69

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

follow-up on 2e2d379.

1 files changed, 4 insertions(+), 4 deletions(-)

lib/std/c/freebsd.zig+4-4
......@@ -2464,8 +2464,8 @@ pub const PROC = struct {
24642464 // x86_64-only constants
24652465 pub const KPTI = switch (builtin.cpu.arch) {
24662466 .x86_64 => struct {
2467 pub const CTL = PROC.PROCCTL_MD_MIND;
2468 pub const STATUS = PROC.PROCCTL_MD_MIND + 1;
2467 pub const CTL = PROC.PROCCTL_MD_MIN;
2468 pub const STATUS = PROC.PROCCTL_MD_MIN + 1;
24692469 pub const CTL_ENABLE_ON_EXEC = 1;
24702470 pub const CTL_DISABLE_ON_EXEC = 2;
24712471 pub const STATUS_ACTIVE = 0x80000000;
......@@ -2474,8 +2474,8 @@ pub const PROC = struct {
24742474 };
24752475 pub const LA = switch (builtin.cpu.arch) {
24762476 .x86_64 => struct {
2477 pub const CTL = PROC.PROCCTL_MD_MIND + 2;
2478 pub const STATUS = PROC.PROCCTL_MD_MIND + 3;
2477 pub const CTL = PROC.PROCCTL_MD_MIN + 2;
2478 pub const STATUS = PROC.PROCCTL_MD_MIN + 3;
24792479 pub const CTL_LA48_ON_EXEC = 1;
24802480 pub const CTL_LA57_ON_EXEC = 2;
24812481 pub const CTL_DEFAULT_ON_EXEC = 3;