[parisc-linux-cvs] linux-2.5 rhirst

Richard Hirst parisc-linux@lists.parisc-linux.org
Fri, 26 Jul 2002 10:13:35 -0600 (MDT)


CVSROOT:	/var/cvs
Module name:	linux-2.5
Changes by:	rhirst	02/07/26 10:13:35

Modified files:
	include/asm-parisc: unistd.h 

Log message:
Revert recent change, so now when the kernel calls open() it picks up
an inline to call sys_open() direct - rather than doing an actual syscall
through the gateway page (can't do that, e.g. the syscall return path
sets the 2 lsb of return addr, forcing user space, and I suspect we trash
the stack as well).  Had to

+#include <linux/sched.h>       /* for current from asm/current.h and sys_wait4() proto */
+#include <linux/fs.h>          /* for sys_close() proto, etc */

in the middle of this file, which is possibly not a good thing to do.