Module Name:    src
Committed By:   riastradh
Date:           Sun Dec 19 01:39:34 UTC 2021

Modified Files:
        src/sys/external/bsd/drm2/include/asm: processor.h

Log Message:
Bogus clflushopt that just does clflush for now.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/external/bsd/drm2/include/asm/processor.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/processor.h
diff -u src/sys/external/bsd/drm2/include/asm/processor.h:1.4 src/sys/external/bsd/drm2/include/asm/processor.h:1.5
--- src/sys/external/bsd/drm2/include/asm/processor.h:1.4	Mon May 31 10:33:04 2021
+++ src/sys/external/bsd/drm2/include/asm/processor.h	Sun Dec 19 01:39:34 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: processor.h,v 1.4 2021/05/31 10:33:04 riastradh Exp $	*/
+/*	$NetBSD: processor.h,v 1.5 2021/12/19 01:39:34 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -36,4 +36,13 @@
 
 #define	cpu_relax()	DELAY(1)	/* XXX */
 
+#if defined(__i386__) || defined(__x86_64__)
+static inline void
+clflushopt(void *p)
+{
+	/* XXX Test CPUID bit, use CLFLUSHOPT...  */
+	asm volatile ("clflush %0" : : "m" (*(const char *)p));
+}
+#endif
+
 #endif  /* _ASM_PROCESSOR_H_ */

Reply via email to