Module Name: src Committed By: matt Date: Sat Sep 1 00:01:43 UTC 2012
Modified Files: src/sys/arch/arm/fpe-arm: armfpe_init.c Log Message: XXX this can not have worked for a long time. Move this to the world of lwps. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/fpe-arm/armfpe_init.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/fpe-arm/armfpe_init.c diff -u src/sys/arch/arm/fpe-arm/armfpe_init.c:1.16 src/sys/arch/arm/fpe-arm/armfpe_init.c:1.17 --- src/sys/arch/arm/fpe-arm/armfpe_init.c:1.16 Sat Nov 21 20:32:27 2009 +++ src/sys/arch/arm/fpe-arm/armfpe_init.c Sat Sep 1 00:01:43 2012 @@ -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 @@ u_int arm_fpe_core_workspace; * 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 @@ arm_fpe_boot(void) 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 */