Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel
In directory usw-pr-cvs1:/tmp/cvs-serv17983/arch/vax/kernel
Modified Files:
process.c
Log Message:
DA: set the DS to USER_DS and also pujt the user stack into the USR
Index: process.c
===================================================================
RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel/process.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- process.c 2001/05/20 17:49:42 1.8
+++ process.c 2001/05/27 16:17:42 1.9
@@ -12,7 +12,7 @@
#include <linux/smp_lock.h>
#include <linux/fs.h>
#include <linux/malloc.h>
-
+#include <asm/uaccess.h>
#include <asm/current.h>
#include <asm/processor.h>
#include <asm/io.h>
@@ -251,10 +251,11 @@
{
printk("starting thread %8lX %8lX %8lX\n", new_pc, new_sp, regs->sp);
- // set_fs(USER_DS);
+ set_fs(USER_DS);
regs->pc = new_pc;
regs->sp = new_sp;
regs->psl.prevmode = PSL_MODE_USER;
regs->psl.accmode = PSL_MODE_USER;
-
+ /* write the sp into the user stack pointer register */
+ __mtpr(new_sp, PR_USP);
}
|