Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/arch/i386/i386 Pull up following revision(s) (request...
details: https://anonhg.NetBSD.org/src/rev/72fddbdeeae8
branches: netbsd-6
changeset: 775422:72fddbdeeae8
user: riz <riz%NetBSD.org@localhost>
date: Wed Oct 31 17:19:49 2012 +0000
description:
Pull up following revision(s) (requested by chs in ticket #642):
sys/arch/i386/i386/locore.S: revision 1.103
in osyscall, set the PSL_I bit into the correct field of the trapframe.
it was going into tf_eip instead of tf_eflags, which would sometimes
corrupt %eip and always return to user mode with interrupts disabled.
this was found with a netbsd 1.0 binary, and dsl@ points out that
this should also fix PR 41342.
diffstat:
sys/arch/i386/i386/locore.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b2252f69cf6d -r 72fddbdeeae8 sys/arch/i386/i386/locore.S
--- a/sys/arch/i386/i386/locore.S Wed Oct 31 16:28:20 2012 +0000
+++ b/sys/arch/i386/i386/locore.S Wed Oct 31 17:19:49 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.95.10.2 2012/04/20 23:32:14 riz Exp $ */
+/* $NetBSD: locore.S,v 1.95.10.3 2012/10/31 17:19:49 riz Exp $ */
/*
* Copyright-o-rama!
@@ -129,7 +129,7 @@
*/
#include <machine/asm.h>
-__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.95.10.2 2012/04/20 23:32:14 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.95.10.3 2012/10/31 17:19:49 riz Exp $");
#include "opt_compat_oldboot.h"
#include "opt_ddb.h"
@@ -1123,7 +1123,7 @@
#endif
pushfl # set eflags in trap frame
popl 8(%esp)
- orl $PSL_I,(%esp) # re-enable ints on return to user
+ orl $PSL_I,8(%esp) # re-enable ints on return to user
pushl $7 # size of instruction for restart
jmp syscall1
IDTVEC_END(osyscall)
Home |
Main Index |
Thread Index |
Old Index