Peer review Simon Lundqvist
Your code looks good; however, it doesn’t compile correctly. The reason is because you need a nop
after the first instruction in proc1
: lb t0, 0(gp)
. You don’t have enough time to write gp
to t0
, and when you move t0
to a0
it will be empty. That’s why you don’t get the first “A” printed—just a square. It works when I try it on my computer. Other than that, the code looks good: you use k0
, k1
in kernel mode, and the code is well commented.
Summary: just implement a nop
after the first instruction in proc1
.
Edited by Simon Lundqvist