summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-12-30 15:16:46 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-12-30 15:16:46 +0100
commited294a65cb3c9ac529dc21368960520a6aa2778a (patch)
tree0f1ca14ab80804c31f61b19b417448fc82e5295d
parent9f880e595c9b6a3bb606339f87ea9c6c2e368671 (diff)
downloadplan9front-ed294a65cb3c9ac529dc21368960520a6aa2778a.tar.xz
zynq: enable prefetch hints and drop-prefetch
-rw-r--r--sys/src/9/zynq/l.s4
-rw-r--r--sys/src/9/zynq/main.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/9/zynq/l.s b/sys/src/9/zynq/l.s
index 4c98983f0..d1e8e98df 100644
--- a/sys/src/9/zynq/l.s
+++ b/sys/src/9/zynq/l.s
@@ -93,14 +93,14 @@ TEXT _virt(SB), $-4
MCR 15, 0, R0, C(7), C(5), 6
BL l1dclear(SB)
MRC 15, 0, R0, C(1), C(0), 1
- ORR $(1|1<<6), R0
+ ORR $(1|2|1<<6), R0
MCR 15, 0, R0, C(1), C(0), 1
MRC 15, 0, R0, C(1), C(0), 0
ORR $(1<<12|1<<2), R0
MCR 15, 0, R0, C(1), C(0), 0
DSB
ISB
-
+
MOVW $(VMAP+0x30), R8
PUTC('9')
diff --git a/sys/src/9/zynq/main.c b/sys/src/9/zynq/main.c
index 6419bcb95..c27879f75 100644
--- a/sys/src/9/zynq/main.c
+++ b/sys/src/9/zynq/main.c
@@ -112,7 +112,7 @@ l2init(void)
l2[CTRL] &= ~1;
l2[TAGRAM] = l2[TAGRAM] & ~0x777 | 0x111;
l2[DATARAM] = l2[DATARAM] & ~0x777 | 0x121;
- l2[PREFETCH] |= 3<<28;
+ l2[PREFETCH] |= 3<<28 | 1<<24;
l2[AUX] |= 3<<28 | 1<<20;
l2[INVWAY] = 0xff;
while((l2[INVPA] & 1) != 0)