Author: br
Date: Sat Nov 19 18:03:46 2016
New Revision: 308859
URL: https://svnweb.freebsd.org/changeset/base/308859

Log:
  Enable SMP on Ingenic JZ4780.
  
  It is required to proceed full cache flush before we can use wait
  instruction on multicore, so use nop instead for now.
  
  Submitted by: kan
  Sponsored by: DARPA, AFRL

Modified:
  head/sys/mips/conf/JZ4780
  head/sys/mips/mips/exception.S

Modified: head/sys/mips/conf/JZ4780
==============================================================================
--- head/sys/mips/conf/JZ4780   Sat Nov 19 17:51:02 2016        (r308858)
+++ head/sys/mips/conf/JZ4780   Sat Nov 19 18:03:46 2016        (r308859)
@@ -53,7 +53,7 @@ options       INVARIANT_SUPPORT       #Extra sanity
 #options       WITNESS_SKIPSPIN        #Don't run witness on spinlocks for 
speed
 
 # Make an SMP-capable kernel by default
-# options      SMP                     # Symmetric MultiProcessor Kernel
+options        SMP                     # Symmetric MultiProcessor Kernel
 
 device         loop
 device         ether

Modified: head/sys/mips/mips/exception.S
==============================================================================
--- head/sys/mips/mips/exception.S      Sat Nov 19 17:51:02 2016        
(r308858)
+++ head/sys/mips/mips/exception.S      Sat Nov 19 18:03:46 2016        
(r308859)
@@ -590,7 +590,11 @@ GLOBAL(MipsWaitStart)                      # this is 16 byt
        mtc0    t1, MIPS_COP_0_STATUS
        bnez    v0, MipsWaitEnd
        nop
+#if defined(CPU_XBURST) && defined(SMP)
+       nop
+#else
        wait
+#endif
 GLOBAL(MipsWaitEnd)                    # MipsWaitStart + 16
        jr      ra
        PTR_ADDU        sp, sp, CALLFRAME_SIZ
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to