On Tue, 2022-10-18 at 18:04 +0800, WANG Xuerui wrote: /* snip */ > +The system call number is placed in the register ``a7``. > +Parameters, if present, are placed from ``a0`` through ``a6`` as needed, > +as if calling a function with the respective arguments. > +Upon return, ``a0`` contains the return value, and ``t0-t8`` should be > +considered clobbered; all other registers are preserved. Hmm, are a1-a7 guaranteed to be preserved? -- Xi Ruoyao <xry111@xxxxxxxxxxx> School of Aerospace Science and Technology, Xidian University