diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-04-27 14:09:46 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-04-27 14:09:46 +0000 |
commit | b76fbb43c872e87ec2d7094cf3b2883d95d49964 (patch) | |
tree | 7f61cb26514cfed85e4055d88cc080b5b13da6a3 /sys/arch/mvme88k/dev | |
parent | 0c43c061c7fad965acfbcf489e4ac871090720fb (diff) |
Allow userland to cause the data cache to be flushed for any arbitrary address
range in the current process, using trap #451.
This is necessary for proper gcc trampolines operation, and, later, ld.so...
Diffstat (limited to 'sys/arch/mvme88k/dev')
-rw-r--r-- | sys/arch/mvme88k/dev/vs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/vs.c b/sys/arch/mvme88k/dev/vs.c index dc9576218a4..3c570d1384f 100644 --- a/sys/arch/mvme88k/dev/vs.c +++ b/sys/arch/mvme88k/dev/vs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vs.c,v 1.54 2005/04/27 14:07:38 miod Exp $ */ +/* $OpenBSD: vs.c,v 1.55 2005/04/27 14:09:45 miod Exp $ */ /* * Copyright (c) 2004, Miodrag Vallat. @@ -408,7 +408,7 @@ vs_scsicmd(struct scsi_xfer *xs) * to flush the cache for a write and flush with inval for * a read, prior to starting the IO. */ - dma_cachectl((vaddr_t)xs->data, xs->datalen, + dma_cachectl(pmap_kernel(), (vaddr_t)xs->data, xs->datalen, flags & SCSI_DATA_IN ? DMA_CACHE_SYNC_INVAL : DMA_CACHE_SYNC); option = 0; |