From 4eb24f4f8e2e6f226cced6f3691d8e5a9f7de7ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 7 Sep 2026 00:32:56 +0200 Subject: [PATCH] std.os.linux: add HWCAP constants for x86 --- lib/std/os/linux.zig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index e9abc71566618c49caab326225770ab02d5f298c..80cf271418f593870fd1913159838c78a7c1dc97 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -933,6 +933,12 @@ pub const HWCAP = switch (native_arch) { pub const CRYPTO = 1 << 26; pub const ADI = 1 << 27; }, + .x86, .x86_64 => struct { + pub const @"2" = struct { + pub const RING3MWAIT = 1 << 0; + pub const FSGSBASE = 1 << 1; + }; + }, else => struct {}, }; -- 2.54.0