Try to emulate the svr4 setpsr trap. Needed by lwp.
This commit is contained in:
parent
d9b15587d5
commit
d1ea7c73a4
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_machdep.c,v 1.35 1999/11/12 20:45:46 kleink Exp $ */
|
||||
/* $NetBSD: svr4_machdep.c,v 1.36 2000/04/09 05:25:37 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
|
@ -555,7 +555,10 @@ svr4_trap(type, p)
|
|||
break;
|
||||
|
||||
case T_SVR4_SETPSR:
|
||||
uprintf("T_SVR4_SETPSR\n");
|
||||
/* I have no clue if this is right! */
|
||||
#define PRESERVE_PSR (PSR_IMPL|PSR_VER|PSR_PIL|PSR_S|PSR_PS|PSR_ET|PSR_CWP)
|
||||
tf->tf_psr = (tf->tf_psr & ~PRESERVE_PSR) |
|
||||
(tf->tf_out[0] & PRESERVE_PSR);
|
||||
break;
|
||||
|
||||
case T_SVR4_GETHRTIME:
|
||||
|
|
Loading…
Reference in New Issue