diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-04-07 00:19:29 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-04-07 00:19:29 +0000 |
commit | acea6a11f375640bf301788fc52b6eabdd3694a2 (patch) | |
tree | a255939dc49010cadc9433ca898c14aac5a9254b /sys | |
parent | cc2c5717538b379de25ba9b9fe2226612a48e4ff (diff) |
put a memmory barrier onto the sync_caches()
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/hppa/include/cpufunc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa/include/cpufunc.h b/sys/arch/hppa/include/cpufunc.h index be5c4702466..e91cdd9680f 100644 --- a/sys/arch/hppa/include/cpufunc.h +++ b/sys/arch/hppa/include/cpufunc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc.h,v 1.26 2004/07/01 21:03:33 mickey Exp $ */ +/* $OpenBSD: cpufunc.h,v 1.27 2005/04/07 00:19:28 mickey Exp $ */ /* * Copyright (c) 1998-2004 Michael Shalayeff @@ -98,8 +98,8 @@ mtsm(register_t mask) { #define fdce(sp,off) __asm __volatile("fdce 0(%0,%1)":: "i" (sp), "r" (off)) #define fice(sp,off) __asm __volatile("fice 0(%0,%1)":: "i" (sp), "r" (off)) -#define sync_caches() \ - __asm __volatile("sync\n\tnop\n\tnop\n\tnop\n\tnop\n\tnop\n\tnop\n\tnop") +#define sync_caches() __asm __volatile(\ + "sync\n\tnop\n\tnop\n\tnop\n\tnop\n\tnop\n\tnop\n\tnop":::"memory") static __inline void iitlba(u_int pg, pa_space_t sp, vaddr_t va) |