<machine/asm.h>; Also syscalls should be protected using the SYSLIBC_SCCS define not LIBC_SCCS
Use testl %reg,%reg instead of cmpl $0,%reg Use xorl %reg,%reg instead of movl $0,%reg
for other source files.