Closed jbush001 closed 6 years ago
(accidentally put wrong bug number in commit).
Fixed in 4209ac27eb4c0056594fad654b34992d78e70527 Issue #145: syscall instruction needs parameter
this change breaks binary compatibility
syscall now has a parameter that is passed in a control register. Needed to renumber syscall opcode to fit in immediate instruction. A lot of these changes are side effects of changing the system call conventions in libos.
Encoding a syscall number that indicates which call is taken. Copy this into a control register.
Currently, the syscall number needs to be copied into a GPR, which doesn't work well with the normal calling convention (first parameter is in s0 instead of s1).