[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenPPC] [pushed] [ppc] get domctl building again



changeset:   10261:b7d0a0c4eb4b683d7da088a4f862569fd5fd1dae
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Thu May 11 15:38:14 2006 -0400
files:       tools/domctrl/Makefile tools/domctrl/regs.c
description:
[ppc] get domctl building again


diff -r 78d9df8bbf4dfda63c2c80a203c0eac74cf054e8 -r 
b7d0a0c4eb4b683d7da088a4f862569fd5fd1dae tools/domctrl/Makefile
--- a/tools/domctrl/Makefile    Thu May 11 15:24:50 2006 -0400
+++ b/tools/domctrl/Makefile    Thu May 11 15:38:14 2006 -0400
@@ -11,7 +11,8 @@ CFLAGS := \
        -O2 \
        -g \
        -I. -I$(VPATH) \
-       -DELFSIZE=64
+       -DELFSIZE=64 \
+       -D__XEN_TOOLS__
 
 LDFLAGS := \
        -static
@@ -22,6 +23,7 @@ OBJS := \
        xc_misc.o \
        xc_private.o \
        xc_load_elf.o \
+       xc_linux.o \
        create.o \
        list.o \
        destroy.o \
@@ -33,9 +35,26 @@ all: mk-symlinks domctrl
 all: mk-symlinks domctrl
 
 $(OBJS): xen
-domctrl: $(OBJS)
+
+domctrl.dbg: $(OBJS)
        $(CC) $(LDFLAGS) $^ $(LOADLIBES) $(LDLIBS) -o $@
+
+domctrl: domctrl.dbg
+       $(CROSS_COMPILE)objcopy --strip-all $< $@
 
 clean:
        rm -f $(OBJS) domctrl
        rm -rf xen
+
+CSCOPE_IGNORE= -name CVS -o -name SCCS -o -name .hg -o -name .git
+
+cscope.files: FRC
+       rm -f cscope*
+       find . $(VPATH) \( $(CSCOPE_IGNORE) \) -prune -o \
+        \( -name \*.[cCsShHlyG] -o -name Make\* -o -name \*.make \) \
+        -print >> $@
+cscope: cscope.files
+       wc -l $<
+       cscope -b -q
+
+FRC:
diff -r 78d9df8bbf4dfda63c2c80a203c0eac74cf054e8 -r 
b7d0a0c4eb4b683d7da088a4f862569fd5fd1dae tools/domctrl/regs.c
--- a/tools/domctrl/regs.c      Thu May 11 15:24:50 2006 -0400
+++ b/tools/domctrl/regs.c      Thu May 11 15:38:14 2006 -0400
@@ -17,7 +17,7 @@ static int get_vcpu_state(int domid, int
        op.cmd = DOM0_GETVCPUCONTEXT;
        op.u.getvcpucontext.domain = domid;
        op.u.getvcpucontext.vcpu = vcpuid;
-       op.u.getvcpucontext.ctxt = ctxt;
+       set_xen_guest_handle(op.u.getvcpucontext.ctxt, ctxt);
 
        rc = do_dom0_op(xc_handle, &op);
        if (rc < 0)
@@ -44,7 +44,7 @@ int regs(char *argv[], int argc)
     printf("pc:   %016lx msr:  %016lx\n", state->pc, state->msr);
     printf("srr0: %016lx srr1: %016lx\n", state->srr0, state->srr1);
     printf("lr:   %016lx ctr:  %016lx\n", state->lr, state->ctr);
-    printf("cr: %08x xer: %08x\n", state->cr, state->xer);
+    printf("cr: %08x xer: %16lx\n", state->cr, state->xer);
     for (i = 0; i < 32; i+=4) {
         printf("%02d: %016lx %016lx %016lx %016lx\n",
                 i, state->gprs[i], state->gprs[i+1],



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.