summaryrefslogtreecommitdiff
path: root/sys/src/9/zynq/fns.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-02-14 02:44:19 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2015-02-14 02:44:19 +0100
commit6b2d1f0186f2e38a3b0cd6a19b5980dccb045c3c (patch)
treebba3d0a51c09b06ea36000c8123c1a2a6c44ade4 /sys/src/9/zynq/fns.h
parent48c5cf1f11fb6b8b620e5ed9269a528b5f6633f4 (diff)
zynq: do fixed mapping for ocm memory on boot and make kaddr() and paddr() work with it
map the whole ocm memory on boot so we can translate physical to virtual addresses and back for uncached memory using KADDR() and PADDR(). replace ualloc() with ucalloc() returning virtual address. physical address can be acquired with PADDR() now. as ocm is now always mapped, use KADDR() instead of tmpmap() for mp bootstrap.
Diffstat (limited to 'sys/src/9/zynq/fns.h')
-rw-r--r--sys/src/9/zynq/fns.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/src/9/zynq/fns.h b/sys/src/9/zynq/fns.h
index 962100aef..ce27a1c04 100644
--- a/sys/src/9/zynq/fns.h
+++ b/sys/src/9/zynq/fns.h
@@ -66,13 +66,10 @@ void clinvdse(void *, void *);
void invaldln(void *);
void cleandln(void *);
void clinvdln(void *);
-uintptr ualloc(ulong, void **);
+void* ucalloc(ulong);
void clean2pa(uintptr, uintptr);
void inval2pa(uintptr, uintptr);
void archinit(void);
uintptr palookur(void *);
void screeninit(void);
int isaconfig(char*, int, ISAConf*);
-void *ucalloc(usize);
-void *ucallocalign(usize, int, int);
-void ucfree(void *);