Peer Review
The code works nicely, is logically grouped, well commented and in whole, looks good! There isn't much to complain about, except maybe a minor optimization. You seem to have added an unnecessary nop
operation under the syscall
in the proc1
procedure by accident, as the same is missing from the other procedures. In the kernel code, you have some branch instructions without nop
operations below, which doesn't cause problems and is very efficient!
The code works good! You only use kernel reserved registers in the kernel, a "faulty" syscall
opcode returns to user process and overflow leads to kernel loop, as should! SR register seems to work good also. All in all, good work!
Edited by Jesper Vikander