From owner-p4-projects@FreeBSD.ORG Sat May 10 17:18:42 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5428137B404; Sat, 10 May 2003 17:18:41 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0480237B401 for ; Sat, 10 May 2003 17:18:41 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A343043FE3 for ; Sat, 10 May 2003 17:18:40 -0700 (PDT) (envelope-from marcel@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4B0Ie0U021941 for ; Sat, 10 May 2003 17:18:40 -0700 (PDT) (envelope-from marcel@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4B0IeKJ021938 for perforce@freebsd.org; Sat, 10 May 2003 17:18:40 -0700 (PDT) Date: Sat, 10 May 2003 17:18:40 -0700 (PDT) Message-Id: <200305110018.h4B0IeKJ021938@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to marcel@freebsd.org using -f From: Marcel Moolenaar To: Perforce Change Reviews Subject: PERFORCE change 30925 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 May 2003 00:18:42 -0000 http://perforce.freebsd.org/chv.cgi?CH=30925 Change 30925 by marcel@marcel_nfs on 2003/05/10 17:18:23 Make disabled FP traps fatal while in kernel mode. While here, fix a debug printf (s/cpu/cpup/) and compile them out by default. Affected files ... .. //depot/projects/ia64_epc/sys/ia64/ia64/trap.c#20 edit Differences ... ==== //depot/projects/ia64_epc/sys/ia64/ia64/trap.c#20 (text+ko) ==== @@ -536,10 +536,16 @@ struct pcb *pcb; struct thread *thr; + /* Always fatal in kernel. Should never happen. */ + if (!user) + goto dopanic; + pcb = td->td_pcb; pcpu = pcb->pcb_fpcpu; +#if 0 printf("XXX: td %p: highfp on cpu %p\n", td, pcpu); +#endif /* * The pcpu variable holds the address of the per-CPU @@ -584,7 +590,9 @@ thr = PCPU_GET(fpcurthread); - printf("XXX: cpu %p: highfp belongs to td %p\n", pcpu, thr); +#if 0 + printf("XXX: cpu %p: highfp belongs to td %p\n", pcpup, thr); +#endif /* * The thr variable holds the thread that owns the high FP