entry: Provide generic syscall exit function