|
@@ -67,7 +67,7 @@ init_cpu_features :: proc "c" () {
|
|
|
try_set(&set, .os_xsave, 27, ecx1)
|
|
|
try_set(&set, .rdrand, 30, ecx1)
|
|
|
|
|
|
- when ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD {
|
|
|
+ when ODIN_OS == .FreeBSD || ODIN_OS == .OpenBSD || ODIN_OS == .NetBSD {
|
|
|
// xgetbv is an illegal instruction under FreeBSD 13 & OpenBSD 7.1
|
|
|
// return before probing further
|
|
|
cpu_features = set
|
|
@@ -133,4 +133,4 @@ init_cpu_name :: proc "c" () {
|
|
|
brand = brand[:len(brand) - 1]
|
|
|
}
|
|
|
cpu_name = brand
|
|
|
-}
|
|
|
+}
|