Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/drm Helps to commit all my ch...
details: https://anonhg.NetBSD.org/src/rev/54cedfd87144
branches: riastradh-drm2
changeset: 788528:54cedfd87144
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Sep 08 15:54:48 2013 +0000
description:
Helps to commit all my changes to drm_cache.c.
diffstat:
sys/external/bsd/drm2/drm/drm_cache.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (52 lines):
diff -r 51723dd3e8ff -r 54cedfd87144 sys/external/bsd/drm2/drm/drm_cache.c
--- a/sys/external/bsd/drm2/drm/drm_cache.c Sun Sep 08 15:54:20 2013 +0000
+++ b/sys/external/bsd/drm2/drm/drm_cache.c Sun Sep 08 15:54:48 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_cache.c,v 1.1.2.1 2013/09/08 15:41:07 riastradh Exp $ */
+/* $NetBSD: drm_cache.c,v 1.1.2.2 2013/09/08 15:54:48 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_cache.c,v 1.1.2.1 2013/09/08 15:41:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_cache.c,v 1.1.2.2 2013/09/08 15:54:48 riastradh Exp $");
#include <sys/types.h>
#include <sys/xcall.h>
@@ -94,13 +94,13 @@
static void
drm_x86_clflush_cpu(void)
{
- __asm__ __volatile__ ("wbinvd");
+ asm volatile ("wbinvd");
}
static void
drm_x86_clflush(const void *vaddr)
{
- __asm__ __volatile__ ("clflush %0" : : "=r" (vaddr));
+ asm volatile ("clflush %0" : : "m" (*(const char *)vaddr));
}
static size_t
@@ -119,7 +119,7 @@
static void
drm_md_clflush_all(void)
{
- xc_wait(xc_broadcast(0, &drm_md_clflush_xc, NULL, NULL));
+ xc_wait(xc_broadcast(0, &drm_x86_clflush_xc, NULL, NULL));
}
static void
@@ -142,7 +142,7 @@
KASSERT(drm_md_clflush_finegrained_p());
for (p = start; p < end; p += clflush_size)
- drm_clflush(p);
+ drm_x86_clflush(p);
}
#endif /* defined(__i386__) || defined(__x86_64__) */
Home |
Main Index |
Thread Index |
Old Index