Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fpe-arm XXX this can not have worked for a long...



details:   https://anonhg.NetBSD.org/src/rev/6f1f9308cf53
branches:  trunk
changeset: 781314:6f1f9308cf53
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Sep 01 00:01:43 2012 +0000

description:
XXX this can not have worked for a long time.
Move this to the world of lwps.

diffstat:

 sys/arch/arm/fpe-arm/armfpe_init.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (43 lines):

diff -r e392950bdfc4 -r 6f1f9308cf53 sys/arch/arm/fpe-arm/armfpe_init.c
--- a/sys/arch/arm/fpe-arm/armfpe_init.c        Sat Sep 01 00:00:42 2012 +0000
+++ b/sys/arch/arm/fpe-arm/armfpe_init.c        Sat Sep 01 00:01:43 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: armfpe_init.c,v 1.16 2009/11/21 20:32:27 rmind Exp $   */
+/*     $NetBSD: armfpe_init.c,v 1.17 2012/09/01 00:01:43 matt Exp $    */
 
 /*
  * Copyright (C) 1996 Mark Brinicombe
@@ -43,7 +43,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: armfpe_init.c,v 1.16 2009/11/21 20:32:27 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: armfpe_init.c,v 1.17 2012/09/01 00:01:43 matt Exp $");
 
 #include <sys/systm.h>
 #include <sys/proc.h>
@@ -69,7 +69,7 @@
  * Error messages for the various exceptions, numbered 0-5
  */
  
-static const char *exception_errors[] = {
+static const char * const exception_errors[] = {
        "invalid operation",
        "division by zero (0)",
        "overflow",
@@ -172,11 +172,11 @@
 void
 arm_fpe_postproc(u_int fpframe, struct trapframe *frame)
 {
-       register int sig;
-       register struct proc *p;
+       struct lwp * const l = curlwp;
+       struct proc * const p = l->l_proc;
+       int sig;
 
-       p = curproc;
-       p->p_addr->u_pcb.pcb_tf = frame;
+       l->l_md.md_tf = frame;
 
        /* take pending signals */
 



Home | Main Index | Thread Index | Old Index