ref: 311b7c29bc0ab336cfd47b52b5aa1a195f25d355
parent: 41c9b1c939726eac9fd70564ff2254239df42b39
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Sep 17 12:34:30 EDT 2014
teg2: fix wrong l2 setshift address in wholecache() (from sources)
--- a/sys/src/9/teg2/cache.v7.s
+++ b/sys/src/9/teg2/cache.v7.s
@@ -164,7 +164,7 @@
MOVW $(CACHECONF+4), R4 /* +4 = l1setsh */
CMP $0, R8 /* cache == 1? */
ADD.NE $(4*2), R3 /* no, assume l2: +8 = l2waysh */
- ADD.NE $(4*2), R3 /* +12 = l2setsh */
+ ADD.NE $(4*2), R4 /* +12 = l2setsh */
MOVW R14, R0 /* get R14's segment ... */
AND $KSEGM, R0
--
⑨