Implement syscall() and atomic