|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-ppc-devel
[XenPPC] Re: use ttyS0 instead of hvc0
 
On Mar 30, 2006, at 7:34 AM, jimix@xxxxxxxxxxxxxx wrote:
 
changeset:   9707:e5f8a390fd700c15b9b48a00fabe0aedda3dc47a
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Thu Mar 30 08:29:13 2006 -0500
 files:       xen/Rules.mk xen/arch/ppc/Makefile xen/arch/ppc/Rules.mk 
xen/arch/ppc/ofd_fixup.c
description:
Do not add PAPR vterm and /vdevice nodes if not configed
If the PAPR vterm hcalls are not supported then make sure they are not
in the devtree so Dom0 does not instantiate the vterm driver.
 
 
 Sorry, I meant to mention this yesterday on-list... I've removed the 
"nonblocking serial_getc" hack from Xen, which broke H_GET_TERM_CHAR 
support. However, the normal Xen console driver (which hijacks 
/dev/ttyS0, at least in dom0) is working fine for both input and 
output. So make sure you aren't using /dev/hvc0 for domain console 
output or a getty.
 diff -r 608a66128e677636142e204adfda02b6014f1a76 -r 
e5f8a390fd700c15b9b48a00fabe0aedda3dc47a xen/Rules.mk
--- a/xen/Rules.mk      Wed Mar 29 16:21:48 2006 -0600
+++ b/xen/Rules.mk      Thu Mar 30 08:29:13 2006 -0500
@@ -57,6 +57,8 @@ CFLAGS-y               += -DMAX_PHYS_CPU
 CFLAGS-y               += -DMAX_PHYS_CPUS=$(max_phys_cpus)
 endif
+AFLAGS := -D__ASSEMBLY__
+
 ALL_OBJS := $(ALL_OBJS-y)
 CFLAGS   := $(strip $(CFLAGS) $(CFLAGS-y))
@@ -64,4 +66,4 @@ CFLAGS   := $(strip $(CFLAGS) $(CFLAGS-y
        $(CC) $(CFLAGS) -c $< -o $@
 %.o: %.S $(HDRS) Makefile
-       $(CC) $(CFLAGS) -D__ASSEMBLY__ -c $< -o $@
+       $(CC) $(CFLAGS) $(AFLAGS) -c $< -o $@
diff -r 608a66128e677636142e204adfda02b6014f1a76 -r 
e5f8a390fd700c15b9b48a00fabe0aedda3dc47a xen/arch/ppc/Rules.mk
--- a/xen/arch/ppc/Rules.mk     Wed Mar 29 16:21:48 2006 -0600
+++ b/xen/arch/ppc/Rules.mk     Thu Mar 30 08:29:13 2006 -0500
@@ -10,7 +10,8 @@ CFLAGS += -I$(BASEDIR)/include/asm-ppc/m
 CFLAGS += -I$(BASEDIR)/include/asm-ppc/mach-default
 CFLAGS += -Wpointer-arith -Wredundant-decls
 CFLAGS += -msoft-float -O2
-CFLAGS-$(debug) += -g -O0 # last one wins
+CFLAGS-$(debug) += -O0 # last one wins
+CFLAGS-$(papr_vterm) += -DPAPR_VDEVICE -DPAPR_VTERM
 #
 # command to embed a binary inside a .o
  
 I don't object to these changes, but they are not all related to 
vterms. Let's try to keep our changesets clean, please.
--
Hollis Blanchard
IBM Linux Technology Center
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
 
 |   
 
 | 
    | 
  
  
    |   | 
    |