aboutsummaryrefslogtreecommitdiff
path: root/pk/mmap.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-02-20 21:43:09 -0800
committerAndrew Waterman <andrew@sifive.com>2017-02-20 21:43:09 -0800
commitf6bca6e35b66632afad68f6b7fb2b3203c8502fb (patch)
tree3f8d691713d96ef4e7f57b8504691e68cdcda6f7 /pk/mmap.h
parent59484c94e161b0f1870096cfb183533b20569669 (diff)
downloadpk-f6bca6e35b66632afad68f6b7fb2b3203c8502fb.zip
pk-f6bca6e35b66632afad68f6b7fb2b3203c8502fb.tar.gz
pk-f6bca6e35b66632afad68f6b7fb2b3203c8502fb.tar.bz2
Don't block for acks on console writes
Diffstat (limited to 'pk/mmap.h')
-rw-r--r--pk/mmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pk/mmap.h b/pk/mmap.h
index f4f39f5..efc7c1e 100644
--- a/pk/mmap.h
+++ b/pk/mmap.h
@@ -33,6 +33,7 @@ uintptr_t do_mprotect(uintptr_t addr, size_t length, int prot);
uintptr_t do_brk(uintptr_t addr);
#define va2pa(va) ({ uintptr_t __va = (uintptr_t)(va); \
+ extern uintptr_t first_free_paddr; \
__va >= DRAM_BASE ? __va : __va + first_free_paddr; })
#endif