WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [pushed] [ppc] serialize the processor for debugging purposes a

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed] [ppc] serialize the processor for debugging purposes and print out HID0
From: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Date: Tue, 25 Apr 2006 14:14:09 -0400
Delivery-date: Tue, 25 Apr 2006 12:19:57 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
changeset:   9947:d82fb1f2e3325bdb61a8a97043dff88ba5e7b442
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Tue Apr 18 14:51:30 2006 -0400
files:       xen/arch/ppc/ppc64/ppc970.c
description:
[ppc] serialize the processor for debugging purposes and print out HID0


diff -r 16f3d0fb6c7d0208d92bccf5e3db8e62a6a14c88 -r 
d82fb1f2e3325bdb61a8a97043dff88ba5e7b442 xen/arch/ppc/ppc64/ppc970.c
--- a/xen/arch/ppc/ppc64/ppc970.c       Tue Apr 18 13:04:42 2006 -0400
+++ b/xen/arch/ppc/ppc64/ppc970.c       Tue Apr 18 14:51:30 2006 -0400
@@ -26,6 +26,8 @@
 #include <asm/ppc64/procarea.h>
 #include <asm/ppc64/processor.h>
 #include <asm/ppc64/ppc970-hid.h>
+
+#undef SERIALIZE
 
 void cpu_initialize(void)
 {
@@ -58,6 +60,17 @@ void cpu_initialize(void)
     hid0.bits.hdice = 1; /* enable HDEC */
     hid0.bits.eb_therm = 1;
     hid0.bits.en_attn = 1;
+#ifdef SERIALIZE
+    ulong s = 0;
+
+    s |= 1UL << (63-0);     /* one_ppc */
+//    s |= 1UL << (63-1);     /* do_single */
+    s |= 1UL << (63-2);     /* isync_sc */
+//    s |= 1UL << (63-3);     /* ser-gp */
+    s |= 1UL << (63-16);     /* inorder */
+    hid0.word |= s;
+#endif
+    printk("hid0: 0x%016lx\n", hid0.word);
     mthid0(hid0.word);
 
     union hid1 hid1;



_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel