svn commit: r254663 - head/sys/pc98/pc98

Jung-uk Kim jkim at FreeBSD.org
Thu Aug 22 16:39:59 UTC 2013


Author: jkim
Date: Thu Aug 22 16:39:59 2013
New Revision: 254663
URL: http://svnweb.freebsd.org/changeset/base/254663

Log:
  MFi386:		r254619
  
  Reimplement atomic_load_acq_64() and atomic_store_rel_64() for i386.
  
  Noticed by:	tinderbox

Modified:
  head/sys/pc98/pc98/machdep.c

Modified: head/sys/pc98/pc98/machdep.c
==============================================================================
--- head/sys/pc98/pc98/machdep.c	Thu Aug 22 16:34:03 2013	(r254662)
+++ head/sys/pc98/pc98/machdep.c	Thu Aug 22 16:39:59 2013	(r254663)
@@ -1359,21 +1359,6 @@ idle_sysctl(SYSCTL_HANDLER_ARGS)
 SYSCTL_PROC(_machdep, OID_AUTO, idle, CTLTYPE_STRING | CTLFLAG_RW, 0, 0,
     idle_sysctl, "A", "currently selected idle function");
 
-uint64_t (*atomic_load_acq_64)(volatile uint64_t *) =
-    atomic_load_acq_64_i386;
-void (*atomic_store_rel_64)(volatile uint64_t *, uint64_t) =
-    atomic_store_rel_64_i386;
-
-static void
-cpu_probe_cmpxchg8b(void)
-{
-
-	if ((cpu_feature & CPUID_CX8) != 0) {
-		atomic_load_acq_64 = atomic_load_acq_64_i586;
-		atomic_store_rel_64 = atomic_store_rel_64_i586;
-	}
-}
-
 /*
  * Reset registers to default values on exec.
  */
@@ -2422,8 +2407,6 @@ init386(first)
 	thread0.td_pcb->pcb_cr3 = (int)IdlePTD;
 	thread0.td_pcb->pcb_ext = 0;
 	thread0.td_frame = &proc0_tf;
-
-	cpu_probe_cmpxchg8b();
 }
 
 void


More information about the svn-src-head mailing list