debuggers.hg

diff tools/firmware/hvmloader/acpi/Makefile @ 20979:a259e779467c

hvmloader: Build a compatibility DSDT with only 15 processor objects.

Deploy this smaller DSDT where possible: this is required to boot
Windows 2000, which only supports up to 15 processors and will blue
screen if it sees more processor objects than that (even inactive
ones).

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 11 22:42:18 2010 +0000 (2010-02-11)
parents 363bbf511573
children 27f5ff8c0aa0
line diff
     1.1 --- a/tools/firmware/hvmloader/acpi/Makefile	Thu Feb 11 21:49:47 2010 +0000
     1.2 +++ b/tools/firmware/hvmloader/acpi/Makefile	Thu Feb 11 22:42:18 2010 +0000
     1.3 @@ -18,7 +18,7 @@
     1.4  XEN_ROOT = ../../../..
     1.5  include $(XEN_ROOT)/tools/firmware/Rules.mk
     1.6  
     1.7 -C_SRC = build.c dsdt.c static_tables.c
     1.8 +C_SRC = build.c dsdt.c dsdt15.c static_tables.c
     1.9  OBJS  = $(patsubst %.c,%.o,$(C_SRC))
    1.10  
    1.11  CFLAGS += -I. -I.. $(CFLAGS_include)
    1.12 @@ -32,15 +32,15 @@ ssdt_pm.h ssdt_tpm.h: %.h: %.asl
    1.13  	sed -e 's/AmlCode/$*/g' $*.hex >$@
    1.14  	rm -f *.aml $*.hex
    1.15  
    1.16 -dsdt.c: dsdt.asl mk_dsdt.c
    1.17 +dsdt.c dsdt15.c: %.c: dsdt.asl mk_dsdt.c
    1.18  	$(MAKE) iasl
    1.19 -	$(HOSTCC) $(HOSTCFLAGS) $(CFLAGS_include) -o mk_dsdt mk_dsdt.c
    1.20 -	head -n -1 $< >_dsdt.asl
    1.21 -	./mk_dsdt >>_dsdt.asl
    1.22 -	iasl -tc _dsdt.asl
    1.23 -	sed -e 's/AmlCode/Dsdt/g' _dsdt.hex >dsdt.c
    1.24 -	echo "int DsdtLen=sizeof(Dsdt);" >> dsdt.c
    1.25 -	rm -f *.aml _dsdt.asl mk_dsdt _dsdt.hex
    1.26 +	$(HOSTCC) $(HOSTCFLAGS) $(CFLAGS_include) -o mk_$* mk_dsdt.c
    1.27 +	head -n -1 $< >_$*.asl
    1.28 +	./mk_$* >>_$*.asl
    1.29 +	iasl -tc _$*.asl
    1.30 +	sed -e 's/AmlCode/_$*/g' _$*.hex >$@
    1.31 +	echo "int _$*_len=sizeof(_$*);" >>$@
    1.32 +	rm -f *.aml _dsdt* mk_$*
    1.33  
    1.34  iasl:
    1.35  	@echo