Subject: port-hp300/736: cannot detect 'kernel coprocessor exception'
To: None <gnats-admin@NetBSD.ORG>
From: Masaru Oki <oki@fs.telcom.oki.co.jp>
List: netbsd-bugs
Date: 01/17/1995 23:20:07
>Number:         736
>Category:       port-hp300
>Synopsis:       cannot detect 'kernel coprocessor exception'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 17 23:20:03 1995
>Originator:     Masaru Oki
>Organization:
>Release:        unknown-1.0
>Environment:
    	
	NetBSD-current 1/5 tar balls

>Description:
	
	NetBSD/hp300 always displayed 'kernel format exception' when trapped
	by kernel copprocessor exception.

>How-To-Repeat:
	
>Fix:
	
diff -ur sys.orig/arch/hp300/hp300/trap.c sys/arch/hp300/hp300/trap.c
--- sys.orig/arch/hp300/hp300/trap.c	Tue Nov 22 06:57:17 1994
+++ sys/arch/hp300/hp300/trap.c	Wed Jan 18 15:38:54 1995
@@ -280,9 +280,9 @@
 	 * The user has most likely trashed the RTE or FP state info
 	 * in the stack frame of a signal handler.
 	 */
-		type |= T_USER;
 		printf("pid %d: kernel %s exception\n", p->p_pid,
 		       type==T_COPERR ? "coprocessor" : "format");
+		type |= T_USER;
 		p->p_sigacts->ps_sigact[SIGILL] = SIG_DFL;
 		i = sigmask(SIGILL);
 		p->p_sigignore &= ~i;
>Audit-Trail:
>Unformatted: