Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 14:21:19 -0700 (PDT)
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 13174 for review
Message-ID:  <200206192121.g5JLLJO04046@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=13174

Change 13174 by julian@julian_ref on 2002/06/19 14:20:26

	Remove debugging cruft

Affected files ...

... //depot/projects/kse/sys/i386/i386/trap.c#52 edit
... //depot/projects/kse/sys/kern/kern_proc.c#71 edit
... //depot/projects/kse/sys/kern/kern_thread.c#74 edit
... //depot/projects/kse/sys/kern/subr_trap.c#69 edit

Differences ...

==== //depot/projects/kse/sys/i386/i386/trap.c#52 (text+ko) ====

@@ -965,7 +965,6 @@
 		 */
 		td->td_mailbox = (void *)fuword((caddr_t)td->td_kse->ke_mailbox
 		    + offsetof(struct kse_mailbox, kmbx_current_thread));
-printf("is KSE mode in syscall(): %p\n", td->td_mailbox);
 		if ((td->td_mailbox == NULL) ||
 		(td->td_mailbox == (void *)-1)) {
 			td->td_mailbox = NULL;	/* single thread it.. */

==== //depot/projects/kse/sys/kern/kern_proc.c#71 (text+ko) ====

@@ -218,10 +218,8 @@
 	int err;
 
 	p = td->td_proc;
-printf("got here 0\n");
 	if ((err = copyin(uap->mbx, &mbx, sizeof(mbx))))
 		return (err);
-printf("got here 1\n");
 	PROC_LOCK(p);
 	/*
 	 * If we have no KSE mode set, just set it, and skip KSE and KSEGRP
@@ -248,7 +246,6 @@
 		 */
 		newkse = td->td_kse;
 	}
-printf("got here 2\n");
 	/*
 	 * Fill out the KSE-mode specific fields of the new kse.
 	 */

==== //depot/projects/kse/sys/kern/kern_thread.c#74 (text+ko) ====

@@ -400,8 +400,6 @@
 	     td, td->td_proc->p_pid, td->td_proc->p_comm);
 	thread_link(td2, ke->ke_ksegrp);
 	cpu_set_upcall(td2, ke->ke_pcb);
-printf("thread_schedule_upcall: Scheduled td %p, my td %p, kse %p\n",
-td2, td, ke);
 	td2->td_ucred = crhold(td->td_ucred);
 	td2->td_kse = NULL;	/* Back as it was. */
 	td2->td_flags = TDF_UNBOUND|TDF_UPCALLING;

==== //depot/projects/kse/sys/kern/subr_trap.c#69 (text+ko) ====

@@ -202,7 +202,6 @@
 		if (td->td_flags & TDF_UPCALLING) {
 			CTR3(KTR_PROC, "userret: upcall thread %p (pid %d, %s)",
 			    td, p->p_pid, p->p_comm);
-printf("Upcalling!\n");
 			/*
 			 * Make sure that it has the correct frame loaded.
 			 * While we know that we are on the same KSEGRP
@@ -230,12 +229,6 @@
 			error = suword((caddr_t)td->td_kse->ke_mailbox +
 			    offsetof(struct kse_mailbox, kmbx_current_thread),
 			    0);
-#if 0
-#ifdef __i386__
-printf("suword mailbox to 0 error: %d, frame= %p, eip=%d, esp=%d\n", error,
-frame, frame->tf_eip, frame->tf_esp);
-#endif
-#endif
 		}
 		/*
 		 * Stop any chance that we may be separated from

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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