Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Mar 2004 11:29:20 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 48003 for review
Message-ID:  <200403021929.i22JTKVR098596@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

http://perforce.freebsd.org/chv.cgi?CH=48003

Change 48003 by peter@peter_daintree on 2004/03/02 11:28:26

	IFi386: we dont have to test curpcb != null anymore.

Affected files ...

.. //depot/projects/hammer/sys/amd64/amd64/trap.c#39 integrate

Differences ...

==== //depot/projects/hammer/sys/amd64/amd64/trap.c#39 (text+ko) ====

@@ -371,8 +371,7 @@
 				frame.tf_rip = (long)doreti_iret_fault;
 				goto out;
 			}
-			if (PCPU_GET(curpcb) != NULL &&
-			    PCPU_GET(curpcb)->pcb_onfault != NULL) {
+			if (PCPU_GET(curpcb)->pcb_onfault != NULL) {
 				frame.tf_rip =
 				    (long)PCPU_GET(curpcb)->pcb_onfault;
 				goto out;
@@ -555,7 +554,6 @@
 nogo:
 	if (!usermode) {
 		if (td->td_intr_nesting_level == 0 &&
-		    PCPU_GET(curpcb) != NULL &&
 		    PCPU_GET(curpcb)->pcb_onfault != NULL) {
 			frame->tf_rip = (long)PCPU_GET(curpcb)->pcb_onfault;
 			return (0);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403021929.i22JTKVR098596>