home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeXTSTEP 3.0
/
NeXTSTEP3.0.iso
/
NextDeveloper
/
Headers
/
bsd
/
m68k
/
unix_traps.h
< prev
next >
Wrap
Text File
|
1992-07-29
|
396b
|
22 lines
/*
* File: unix_traps.h
* Author: Avadis Tevanian, Jr.
*
* Macro definition for fast Unix traps.
*/
#ifndef _M68K_UNIX_TRAPS_
#define _M68K_UNIX_TRAPS_
#import <mach/m68k/syscall_sw.h>
#define fast_kernel_trap(number, args) \
movl sp,a0; \
save_registers_##args; \
kernel_trap_args_##args; \
movl \#number,d0; \
trap \#4; \
restore_registers_##args;
#endif _MUNIX_TRAPS_