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 Define cpu_has_pat for x86.
details: https://anonhg.NetBSD.org/src/rev/0194f5ca9ae8
branches: trunk
changeset: 364656:0194f5ca9ae8
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Aug 27 13:44:15 2018 +0000
description:
Define cpu_has_pat for x86.
diffstat:
sys/external/bsd/drm2/include/asm/cpufeature.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r fb0ea1d8a414 -r 0194f5ca9ae8 sys/external/bsd/drm2/include/asm/cpufeature.h
--- a/sys/external/bsd/drm2/include/asm/cpufeature.h Mon Aug 27 13:44:04 2018 +0000
+++ b/sys/external/bsd/drm2/include/asm/cpufeature.h Mon Aug 27 13:44:15 2018 +0000
@@ -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)
Home |
Main Index |
Thread Index |
Old Index