Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/sh3/sh3 Pull up revision 1.3 (requested by kle...



details:   https://anonhg.NetBSD.org/src/rev/86b4cc9c6c33
branches:  netbsd-1-5
changeset: 491793:86b4cc9c6c33
user:      he <he%NetBSD.org@localhost>
date:      Sat May 26 15:28:22 2001 +0000

description:
Pull up revision 1.3 (requested by kleink):
  Validate Status Register passed from userland in sigreturn().

diffstat:

 sys/arch/sh3/sh3/compat_13_machdep.c |  11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diffs (27 lines):

diff -r 8e295f8e63bb -r 86b4cc9c6c33 sys/arch/sh3/sh3/compat_13_machdep.c
--- a/sys/arch/sh3/sh3/compat_13_machdep.c      Sat May 26 15:27:57 2001 +0000
+++ b/sys/arch/sh3/sh3/compat_13_machdep.c      Sat May 26 15:28:22 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_13_machdep.c,v 1.1 1999/09/13 10:31:27 itojun Exp $     */
+/*     $NetBSD: compat_13_machdep.c,v 1.1.12.1 2001/05/26 15:28:22 he Exp $    */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -71,16 +71,9 @@
        /* Restore register context. */
        tf = p->p_md.md_regs;
 
-       /*
-        * Check for security violations.  If we're returning to
-        * protected mode, the CPU will validate the segment registers
-        * automatically and generate a trap on violations.  We handle
-        * the trap, rather than doing all of the checking here.
-        */
-#ifdef TODO
+       /* Check for security violations.  */
        if (((context.sc_ssr ^ tf->tf_ssr) & PSL_USERSTATIC) != 0)
                return (EINVAL);
-#endif
 
        tf->tf_ssr = context.sc_ssr;
 



Home | Main Index | Thread Index | Old Index