From: Kenn H. <ke...@us...> - 2001-01-23 23:56:08
|
Update of /cvsroot/linux-vax/kernel-2.4/include/asm-vax In directory usw-pr-cvs1:/tmp/cvs-serv30556 Modified Files: unistd.h Log Message: Bring over latter 2.2 changes Index: unistd.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/unistd.h,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** unistd.h 2001/01/17 16:18:52 1.1 --- unistd.h 2001/01/23 23:56:25 1.2 *************** *** 356,359 **** --- 356,371 ---- #ifdef __KERNEL_SYSCALLS__ + /* This _must_ be inlined so that it picks up the correct AP value + from the caller */ + static inline int __chmk(unsigned int syscall) + { + register int retval __asm__("r0"); + __asm__("chmk %0" + : /* implicit output in r0 */ + : "g"(syscall) + : "r0", "r1"); + return retval; + } + /* * we need this inline - forking from kernel space will result *************** *** 372,380 **** #include <linux/signal.h> ! extern void sys_idle(void); ! static inline void idle(void) { ! sys_idle(); } --- 384,394 ---- #include <linux/signal.h> + + extern pid_t kernel_thread(int (*fn)(void *), void *arg, unsigned long flags); ! extern int sys_idle(void); ! static inline int idle(void) { ! return sys_idle(); } |