PERFORCE change 94830 for review

Kip Macy kmacy at FreeBSD.org
Sun Apr 9 00:34:53 UTC 2006


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

Change 94830 by kmacy at kmacy_storage:sun4v_rwbuf on 2006/04/09 00:34:34

	initialize queue head registers
	add another field to init mondo

Affected files ...

.. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/support.S#12 edit

Differences ...

==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/support.S#12 (text+ko) ====

@@ -812,7 +812,7 @@
 	stx	%o0, [%g2]
         stx     %o1, [%g2+8]
         stx     %o2, [%g2+0x10]
-        stx     %g0, [%g2+0x18]
+        stx     %o3, [%g2+0x18]
         stx     %g0, [%g2+0x20]
         stx     %g0, [%g2+0x28]
         stx     %g0, [%g2+0x30]
@@ -820,8 +820,21 @@
         retl
 	 membar #Sync 
 END(init_mondo)
-		
-			
+
+
+ENTRY(init_mondo_queue)			
+        mov     CPU_MONDO_QUEUE_TAIL, %g2     
+        ldxa    [%g2]ASI_QUEUE, %g2     
+        mov     CPU_MONDO_QUEUE_HEAD, %g6     
+        stxa    %g2, [%g6]ASI_QUEUE
+        mov     DEV_MONDO_QUEUE_TAIL, %g2     
+        ldxa    [%g2]ASI_QUEUE, %g2     
+        mov     DEV_MONDO_QUEUE_HEAD, %g6     
+        stxa    %g2, [%g6]ASI_QUEUE 
+	retl
+	  membar #Sync    
+END(init_mondo_queue)
+	
 #ifdef GPROF
 
 ENTRY(user)


More information about the p4-projects mailing list