Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2002 17:20:03 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 14065 for review
Message-ID:  <200207110020.g6B0K3TO078445@freefall.freebsd.org>

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

Change 14065 by peter@peter_daintree on 2002/07/10 17:19:11

	fix some oops's.  s/atomic_store_int_rel/atomic_store_rel_int/
	(cut/pasted from jhb's suggestion).
	Fix comment within comment.

Affected files ...

.. //depot/projects/pmap/sys/i386/i386/mp_machdep.c#19 edit

Differences ...

==== //depot/projects/pmap/sys/i386/i386/mp_machdep.c#19 (text+ko) ====

@@ -2261,7 +2261,7 @@
 	mtx_lock_spin(&smp_tlb_mtx);
 	smp_tlb_addr1 = addr1;
 	smp_tlb_addr2 = addr2;
-	atomic_store_int_rel(&smp_tlb_wait, 0);
+	atomic_store_rel_int(&smp_tlb_wait, 0);
 	ipi_all_but_self(vector);
 	while (smp_tlb_wait < ncpu)
 		ia32_pause();
@@ -2278,8 +2278,8 @@
  *	bits++;
  * }
  * and
- * while (lsb = (m & -m)) {	/* This is magic too */
- * 	m &= ~lsb;		/* or: m ^= lsb */
+ * while (lsb = (m & -m)) {	// This is magic too
+ * 	m &= ~lsb;		// or: m ^= lsb
  *	bits++;
  * }
  * Both of these latter forms do some very strange things on gcc-3.1 with
@@ -2332,7 +2332,7 @@
 	mtx_lock_spin(&smp_tlb_mtx);
 	smp_tlb_addr1 = addr1;
 	smp_tlb_addr2 = addr2;
-	atomic_store_int_rel(&smp_tlb_wait, 0);
+	atomic_store_rel_int(&smp_tlb_wait, 0);
 	if (mask == (u_int)-1)
 		ipi_all_but_self(vector);
 	else

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?200207110020.g6B0K3TO078445>