Basic handling of system calls/trap routines