Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/include G/C unused [fp]dcache_small.
details: https://anonhg.NetBSD.org/src/rev/dd6493c43afb
branches: trunk
changeset: 773508:dd6493c43afb
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Feb 04 16:33:27 2012 +0000
description:
G/C unused [fp]dcache_small.
OK riz@
diffstat:
sys/arch/hppa/include/cpufunc.h | 32 +-------------------------------
1 files changed, 1 insertions(+), 31 deletions(-)
diffs (46 lines):
diff -r 2a2a19d3f519 -r dd6493c43afb sys/arch/hppa/include/cpufunc.h
--- a/sys/arch/hppa/include/cpufunc.h Sat Feb 04 16:31:19 2012 +0000
+++ b/sys/arch/hppa/include/cpufunc.h Sat Feb 04 16:33:27 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufunc.h,v 1.14 2009/11/29 10:09:54 skrll Exp $ */
+/* $NetBSD: cpufunc.h,v 1.15 2012/02/04 16:33:27 skrll Exp $ */
/* $OpenBSD: cpufunc.h,v 1.17 2000/05/15 17:22:40 mickey Exp $ */
@@ -187,36 +187,6 @@
#define PCXL2_ACCEL_IO_ADDR2MASK(a) (0x8 >> ((((a) >> 25) - 2) & 3))
void eaio_l2(int);
-/*
- * These flush or purge the data cache for a item whose total
- * size is <= the size of a data cache line, however they don't
- * check this constraint.
- */
-static __inline void
-fdcache_small(pa_space_t sp, vaddr_t va, vsize_t size)
-{
- __asm volatile(
- " mtsp %0,%%sr1 \n"
- " fdc %%r0(%%sr1, %1) \n"
- " fdc %2(%%sr1, %1) \n"
- " sync \n"
- " syncdma \n"
- :
- : "r" (sp), "r" (va), "r" (size - 1));
-}
-static __inline void
-pdcache_small(pa_space_t sp, vaddr_t va, vsize_t size)
-{
- __asm volatile(
- " mtsp %0,%%sr1 \n"
- " pdc %%r0(%%sr1, %1) \n"
- " pdc %2(%%sr1, %1) \n"
- " sync \n"
- " syncdma \n"
- :
- : "r" (sp), "r" (va), "r" (size - 1));
-}
-
#endif /* _KERNEL */
#endif /* _HPPA_CPUFUNC_H_ */
Home |
Main Index |
Thread Index |
Old Index