diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-02-21 20:33:25 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-02-21 20:33:25 +0000 |
commit | 69138fb52884ac75504bc5664e180efbe3a7c87b (patch) | |
tree | 200bf454c86704bf2943c4c78521468b3711df98 /sys/arch | |
parent | 62d09fb03b566bb71d06dc18471200f28060adf7 (diff) |
dma_cachectl() bye-bye.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/mvme68k/include/cpu.h | 3 | ||||
-rw-r--r-- | sys/arch/mvme68k/mvme68k/sys_machdep.c | 46 |
2 files changed, 2 insertions, 47 deletions
diff --git a/sys/arch/mvme68k/include/cpu.h b/sys/arch/mvme68k/include/cpu.h index 727b8171e37..8521b55dc2c 100644 --- a/sys/arch/mvme68k/include/cpu.h +++ b/sys/arch/mvme68k/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.28 2008/07/18 23:43:31 art Exp $ */ +/* $OpenBSD: cpu.h,v 1.29 2009/02/21 20:33:23 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -207,7 +207,6 @@ int badvaddr(vaddr_t, int); void nmihand(void *); int intr_findvec(int, int); -void dma_cachectl(caddr_t, int); paddr_t kvtop(vaddr_t); #endif /* _KERNEL */ diff --git a/sys/arch/mvme68k/mvme68k/sys_machdep.c b/sys/arch/mvme68k/mvme68k/sys_machdep.c index ea95554024a..f236e2f6d99 100644 --- a/sys/arch/mvme68k/mvme68k/sys_machdep.c +++ b/sys/arch/mvme68k/mvme68k/sys_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sys_machdep.c,v 1.19 2005/12/17 07:31:26 miod Exp $ */ +/* $OpenBSD: sys_machdep.c,v 1.20 2009/02/21 20:33:24 miod Exp $ */ /* * Copyright (c) 1982, 1986, 1993 @@ -50,50 +50,6 @@ #include <machine/cpu.h> -/* - * DMA cache control - */ -/*ARGSUSED1*/ -void -dma_cachectl(addr, len) - caddr_t addr; - int len; -{ -#if defined(M68040) || defined(M68060) - if (mmutype <= MMU_68040) { - register int inc = 0; - int pa = 0; - caddr_t end; - - end = addr + len; - if (len <= 1024 || mmutype == MMU_68060) { /* always line push line for 060 */ - addr = (caddr_t)((int)addr & ~0xF); - inc = 16; - } else { - addr = (caddr_t)((int)addr & ~PGOFSET); - inc = NBPG; - } - do { - /* - * Convert to physical address. - */ - if (pa == 0 || ((int)addr & PGOFSET) == 0) { - pa = kvtop((vaddr_t)addr); - } - if (inc == 16) { - DCFL(pa); - ICPL(pa); - } else { - DCFP(pa); - ICPP(pa); - } - pa += inc; - addr += inc; - } while (addr < end); - } -#endif /* M68040 */ -} - int sys_sysarch(p, v, retval) struct proc *p; |