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

Re: [XenPPC] [pushed] [ppc] serialize the processor for debugging purpos

To: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Subject: Re: [XenPPC] [pushed] [ppc] serialize the processor for debugging purposes and print out HID0
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Tue, 25 Apr 2006 16:31:40 -0500
Cc: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 25 Apr 2006 14:30:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <3DB67BA3-F237-46CC-B6DD-CD73E3DA8ED6@xxxxxxxxxxxxxx>
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>
Organization: IBM Linux Technology Center
References: <E1FYS37-0007Xd-LS@xxxxxxxxxxxxxxxxxxxxx> <1145994712.3609.9.camel@xxxxxxxxxxxxxxxxxxxxx> <3DB67BA3-F237-46CC-B6DD-CD73E3DA8ED6@xxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-04-25 at 16:41 -0400, Jimi Xenidis wrote:
> On Apr 25, 2006, at 3:51 PM, Hollis Blanchard wrote:
> > Please fix the // comments and spacing mismatch.
> oops, yes I hate them to.
> >
> > Also, I'm completely baffled... why did you add all these magic  
> > numbers
> > instead of simply extending "union hid0"? Please fix.
> because they are not necessarily architected bit, so I'd rather leave  
> them for debug.

If you really object to placing them in the structure (which I don't
understand), then the least you could do is define some constant names
for them. Then you could define an HID0_EXTRABITS macro:
        #define SERIALIZE
        #ifdef SERIALIZE
        #define HID0_EXTRABITS HID0_SOMETHING | HID0_SOMETHING_ELSE
        #else
        #define HID0_EXTRABITS 0
        #endif

-- 
Hollis Blanchard
IBM Linux Technology Center


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