shithub: riscv

Download patch

ref: 6efabda4863a13cf811575e5dbde9e33ef91c8cf
parent: ee93b99842546dc501a383e06fd0ba4af904e150
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Fri Aug 18 14:21:32 EDT 2023

7c: do NOT allocate link register for general use

--- a/sys/src/cmd/7c/txt.c
+++ b/sys/src/cmd/7c/txt.c
@@ -101,6 +101,7 @@
 	/* don't allocate */
 	reg[REGTMP] = 1;
 	reg[REGSB] = 1;
+	reg[REGLINK] = 1;
 	reg[REGSP] = 1;
 	reg[REGZERO] = 1;
 	/* keep two external registers */