From: Dave A. <ai...@us...> - 2001-05-27 12:34:17
|
Update of /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel In directory usw-pr-cvs1:/tmp/cvs-serv21374/arch/vax/kernel Modified Files: entry.S Log Message: DA: return from syscall needed to copy the PSL from the pt_regs struct into the save PSL.. otherwise we would never use the value set in start_thread and never make it into user mode... Well done Kenn on the commenting... found what I needed in about 10 secs .. I'll have to start forcing myself to comment like this :-) Index: entry.S =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/arch/vax/kernel/entry.S,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- entry.S 2001/01/29 00:55:04 1.3 +++ entry.S 2001/05/27 12:34:13 1.4 @@ -152,6 +152,12 @@ the R0 index skips over the exception info */ movl 4(sp), 20(sp)[r0] + /* + * D.A. May 2001 - we need to copy the PSL down, to + * get to usermode originally as we make up a new PSL + * in start_thread and we need the CPU to believe it + */ + movl 8(sp), 24(sp)[r0] /* The stack now looks like: SP: saved SP for previous mode |