1 #ifndef _LINUX_SPARC_SYSDEP_H
2 #define _LINUX_SPARC_SYSDEP_H 1
4 #include <common/sysdep.h>
11 #define LOADSYSCALL(x) mov __NR_##x, %g1
15 .global C_SYMBOL_NAME(name); \
16 .type name, @function; \
24 #define LOC(name) .L##name
26 /* If the offset to __syscall_error fits into a signed 22-bit
27 * immediate branch offset, the linker will relax the call into
35 #define PSEUDO(name, syscall_name, args) \
37 .globl __syscall_error; \
39 LOADSYSCALL(syscall_name); \
43 call __syscall_error; \
47 #define PSEUDO_NOERRNO(name, syscall_name, args)\
50 LOADSYSCALL(syscall_name); \
53 #define PSEUDO_ERRVAL(name, syscall_name, args) \
56 LOADSYSCALL(syscall_name); \
59 #define PSEUDO_END(name) \
63 #endif /* __ASSEMBLER__ */
65 /* Pointer mangling is not yet supported for SPARC. */
66 #define PTR_MANGLE(var) (void) (var)
67 #define PTR_DEMANGLE(var) (void) (var)