#include <architecture/i386/asm_help.h>
-#if defined(__i386__)
/*
* Software interrupt codes for 32-bit system call entry:
*/
#define MACHDEP_INT 0x82
#define DIAG_INT 0x83
+#if defined(__i386__)
+
#ifndef KERNEL
/*
* Syscall entry macros for use in libc:
call __sysenter_trap ;\
END(_##trap_name)
-#endif
+#endif /* !KERNEL */
+
#endif /* defined(__i386__) */
#if defined(__x86_64__)
syscall ;\
END(_##trap_name)
-#endif
+#endif /* !KERNEL */
+
#endif /* defined(__x86_64__) */
/*
#define SYSCALL_CLASS_UNIX 2 /* Unix/BSD */
#define SYSCALL_CLASS_MDEP 3 /* Machine-dependent */
#define SYSCALL_CLASS_DIAG 4 /* Diagnostics */
+#define SYSCALL_CLASS_IPC 5 /* Mach IPC */
/* Macros to simpllfy constructing syscall numbers. */
#define SYSCALL_CONSTRUCT_MACH(syscall_number) \