Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/include/asm boot_cpu_has(X86_FEATURE_PAT)
details: https://anonhg.NetBSD.org/src/rev/abf2c116ce37
branches: trunk
changeset: 1027984:abf2c116ce37
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:25:05 2021 +0000
description:
boot_cpu_has(X86_FEATURE_PAT)
diffstat:
sys/external/bsd/drm2/include/asm/cpufeature.h | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 008154cf6d45 -r abf2c116ce37 sys/external/bsd/drm2/include/asm/cpufeature.h
--- a/sys/external/bsd/drm2/include/asm/cpufeature.h Sun Dec 19 01:24:57 2021 +0000
+++ b/sys/external/bsd/drm2/include/asm/cpufeature.h Sun Dec 19 01:25:05 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufeature.h,v 1.6 2021/12/19 01:18:39 riastradh Exp $ */
+/* $NetBSD: cpufeature.h,v 1.7 2021/12/19 01:25:05 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -40,6 +40,7 @@
#define cpu_has_pat ((cpu_info_primary.ci_feat_val[0] & CPUID_PAT) != 0)
#define X86_FEATURE_CLFLUSH 0
+#define X86_FEATURE_PAT 1
static inline bool
static_cpu_has(int feature)
@@ -47,11 +48,15 @@
switch (feature) {
case X86_FEATURE_CLFLUSH:
return cpu_has_clflush;
+ case X86_FEATURE_PAT:
+ return cpu_has_pat;
default:
return false;
}
}
+#define boot_cpu_has static_cpu_has
+
static inline size_t
cache_line_size(void)
{
Home |
Main Index |
Thread Index |
Old Index