Module Name: src
Committed By: riastradh
Date: Mon Aug 27 13:44:16 UTC 2018
Modified Files:
src/sys/external/bsd/drm2/include/asm: cpufeature.h
Log Message:
Define cpu_has_pat for x86.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/drm2/include/asm/cpufeature.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/drm2/include/asm/cpufeature.h
diff -u src/sys/external/bsd/drm2/include/asm/cpufeature.h:1.3 src/sys/external/bsd/drm2/include/asm/cpufeature.h:1.4
--- src/sys/external/bsd/drm2/include/asm/cpufeature.h:1.3 Mon Aug 27 13:44:04 2018
+++ src/sys/external/bsd/drm2/include/asm/cpufeature.h Mon Aug 27 13:44:15 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufeature.h,v 1.3 2018/08/27 13:44:04 riastradh Exp $ */
+/* $NetBSD: cpufeature.h,v 1.4 2018/08/27 13:44:15 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -37,6 +37,7 @@
#if defined(__i386__) || defined(__x86_64__)
#define cpu_has_clflush ((cpu_info_primary.ci_feat_val[0] & CPUID_CFLUSH) != 0)
+#define cpu_has_pat ((cpu_info_primary.ci_feat_val[0] & CPUID_PAT) != 0)
static inline size_t
cache_line_size(void)