go/test: passes 88% (306/347)
R=rsc
https://golang.org/cl/152089
WORD arg2
*/
+extern void cacheflush(byte* start, byte* end);
+
#pragma textflag 7
void
runtime·closure(int32 siz, byte *fn, byte *arg0)
if(p > q)
throw("bad math in sys.closure");
+
+ cacheflush(*ret, q+siz);
}
#define SYS_futex (SYS_BASE + 240)
#define SYS_exit_group (SYS_BASE + 248)
+#define ARM_BASE (SYS_BASE + 0x0f0000)
+#define SYS_ARM_cacheflush (ARM_BASE + 2)
+
TEXT write(SB),7,$0
MOVW 0(FP), R0
MOVW 4(FP), R1
MOVW R0, (R1)
+TEXT cacheflush(SB),7,$0
+ MOVW 0(FP), R0
+ MOVW 4(FP), R1
+ MOVW $0, R2
+ MOVW $SYS_ARM_cacheflush, R7
+ SWI $0
+ RET
+