| /* $Id: conv.h,v 1.4 1998/08/15 20:42:51 davem Exp $ |
| * conv.h: Utility macros for Solaris emulation |
| * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) |
| /* #define DEBUG_SOLARIS */ |
| #define DEBUG_SOLARIS_KMALLOC |
| /* Use this to get at 32-bit user passed pointers. */ |
| ({ unsigned long __ret; \ |
| __asm__ ("srl %0, 0, %0" \ |
| extern unsigned sys_call_table[]; |
| extern unsigned sys_call_table32[]; |
| extern unsigned sunos_sys_table[]; |
| #define SYS(name) ((long)sys_call_table[__NR_##name]) |
| #define SUNOS(x) ((long)sunos_sys_table[x]) |
| #define SOLD(s) printk("%s,%d,%s(): %s\n",__FILE__,__LINE__,__FUNCTION__,(s)) |
| #define SOLDD(s) printk("solaris: "); printk s |
| #endif /* __ASSEMBLY__ */ |