1 #include "sparc/sparc.h"
3 /* Override the name of the mcount profiling function. */
6 #define MCOUNT_FUNCTION "*.mcount"
8 /* LINK_SPEC is needed only for SunOS 4. */
12 /* Override MACHINE_STATE_{SAVE,RESTORE} because we have special
13 traps available which can get and set the condition codes
15 #undef MACHINE_STATE_SAVE
16 #define MACHINE_STATE_SAVE(ID) \
17 unsigned long int ms_flags, ms_saveret; \
18 asm volatile("ta 0x20\n\t" \
21 : "=r" (ms_flags), "=r" (ms_saveret));
23 #undef MACHINE_STATE_RESTORE
24 #define MACHINE_STATE_RESTORE(ID) \
25 asm volatile("mov %0, %%g1\n\t" \
29 : "r" (ms_flags), "r" (ms_saveret));