diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-01 10:23:17 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-01 10:23:17 +0100 |
commit | 28ad4e661610353efec655fdf147a46e156bf46e (patch) | |
tree | e830a6f8cfa91507114c1bc52f3c45356d235b15 /sys/src/9/pc/dma.c | |
parent | 06bc19c28f3bd1528f669626eb9826226decabd9 (diff) |
pc kernel: split mpstartap() and squidboy into separate file... stuff for amd64
Diffstat (limited to 'sys/src/9/pc/dma.c')
-rw-r--r-- | sys/src/9/pc/dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/dma.c b/sys/src/9/pc/dma.c index 2370442e1..1b07b4f98 100644 --- a/sys/src/9/pc/dma.c +++ b/sys/src/9/pc/dma.c @@ -195,7 +195,7 @@ dmasetup(int chan, void *va, long len, int flags) * if this isn't kernel memory or crossing 64k boundary or above 16 meg * use the bounce buffer. */ - if((ulong)va < KZERO + if((uintptr)va < KZERO || ((pa=PADDR(va))&0xFFFF0000) != ((pa+len)&0xFFFF0000) || pa >= 16*MB){ if(xp->bva == nil) |