From b8612cbda3625e27f109469a1f5416237c97fb41 Mon Sep 17 00:00:00 2001 From: Lisa Hsu Date: Fri, 14 Nov 2003 10:52:42 -0500 Subject: Import changeset --- system/alpha/palcode/Makefile | 157 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 157 insertions(+) create mode 100644 system/alpha/palcode/Makefile (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile new file mode 100644 index 000000000..7d4f21cd1 --- /dev/null +++ b/system/alpha/palcode/Makefile @@ -0,0 +1,157 @@ +# +# $Id: Makefile,v 1.2 1997/12/16 01:18:38 bugnion Exp $ +# +# Revision History: +# +# $Log: Makefile,v $ +# Revision 1.2 1997/12/16 01:18:38 bugnion +# Removed bogus TLASER offsets from palcode build. -- roll over +# simultaneously with the simulation tree +# +# Revision 1.1.1.1 1997/10/30 23:27:18 verghese +# current 10/29/97 +# +# +# Set environment variables to point to various things: +# +# EB_TOOLBOX - Where your toolset is located +# + +EB_TOOLBOX = /wrl/proj/simos/bin/tools/osf +CPP = /usr/bin/cpp +AS = $(EB_TOOLBOX)/gas +LD = $(EB_TOOLBOX)/gld +DIS = $(EB_TOOLBOX)/alist +STRIP = $(EB_TOOLBOX)/astrip +PVC = $(EB_TOOLBOX)/pvc +MAKEDEP = $(CPP) -MM + +# +# Define KDEBUG if you want a special unprivileged CALL_PAL +# breakpoint trap handler for remote kernel debugging. +# +# Define CONSOLE_ENTRY to change the sys$enter_console +# transfer address. Default CONSOLE_ENTRY value is 0x10000. +# +# Define DISABLE_CRD to disable CRD. Note that reset sets MCES so that +# correctable errors are ignored anyway, but this actually stops the +# interrupt. +# + +DEFINES = -DDISABLE_CRD -DSIMOS -DBUILD_PALCODE +DEFINES += -I$(SIMTOOLS)/cpus-alpha/simos + +CPPFLAGS = +ASFLAGS = -21164 +#LDFLAGS = -Tstrip 0 -Thdr -N +#LDFLAGS = -Tstrip 2000 -Thdr -N # removed bugnion +LDFLAGS = -Tstrip 4000 -Thdr -N +# Source files: +# +# This is the only block in which the list of source files should change. +# +# SFILES - assembler source files +# HFILES - header files +# + +SFILES = osfpal.s platform.s + +HFILES = dc21164.h \ + osf.h \ + macros.h \ + ev5_impure.h \ + cserve.h \ + platform.h + +# Intermediate files: +# +# This block should not change. +# + +IFILES = $(SFILES:.s=.i) + +# Object files: +# +# This block should not change. +# + +OFILES = $(IFILES:.i=.o) + +.DEFAULT: + co -u $< + +.SUFFIXES: +.SUFFIXES: .s .i .o + +.s.i: + $(CPP) $(CPPFLAGS) $(DEFINES) $< $*.i + +osfpal.nh: osfpal + $(STRIP) -a osfpal $@ + $(DIS) osfpal >osfpal.dis + +osfpal: $(OFILES) + echo '$OFILES= ' $(OFILES) + $(LD) $(LDFLAGS) -o $@ $(OFILES) + +osfpal.o: osfpal.i + $(AS) $(ASFLAGS) -o $@ osfpal.i + +platform.o: platform.i + $(AS) $(ASFLAGS) -o $@ platform.i + +pvc: osfpal.lis osfpal.nh osfpal.ent osfpal.map + (export PVC_PAL PVC_ENTRY PVC_MAP PVC_CPU; \ + PVC_PAL=osfpal.nh; \ + PVC_ENTRY=osfpal.ent; \ + PVC_MAP=osfpal.map; \ + PVC_CPU=ev5; \ + $(PVC);) + +osfpal.lis: osfpal + $(DIS) osfpal > $@ + +osfpal.map: osfpal + $(DIS) -m osfpal > $@ + +depend: + @cat < /dev/null > makedep + @(for i in $(SFILES); do echo $$i; \ + $(MAKEDEP) $(DEFINES) $$i | \ + awk '{ if ($$1 != prev) {if (rec != "") print rec; \ + rec = $$0; prev = $$1; } \ + else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ + else rec = rec " " $$2 } } \ + END { print rec }' | sed 's/\.o/\.i/' \ + >> makedep; done) + @echo '/^# DO NOT DELETE THIS LINE/+1,$$d' > eddep + @echo '$$r makedep' >> eddep + @echo 'w' >> eddep + @cp Makefile Makefile.bak + @ed - Makefile < eddep + @rm -f eddep makedep + @echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile + @echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile + @echo '# see make depend above' >> Makefile + +clean: + rm -f core $(OFILES) $(IFILES) + +clobber: clean + rm -f osfpal.lis osfpal.nh osfpal.map osfpal + +rcsinfo: + rlog RCS/* + +rcsget: + co -u $(HFILES) $(SFILES) + +# DO NOT DELETE THIS LINE +osfpal.i: osfpal.s +platform.i: platform.s ./cserve.h ./platform.h +# DEPENDENCIES MUST END AT END OF FILE +# IF YOU PUT STUFF HERE IT WILL GO AWAY +# see make depend above + + + -- cgit v1.2.3 From d7fba9784e99ca4465c9cc04b611cf309e637d33 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Fri, 19 Dec 2003 14:24:01 -0500 Subject: The palcode will now build by simply typing make in this directory. Most of the changes were to fix broken macros in platfrom_tlaser.s palcode/Makefile: Completly new makefile to build palcode palcode/ev5_alpha_defs.h: fixed a broken define palcode/ev5_impure.h: macro fixes palcode/platform_srcmax.s: manual macro expansion of broken macros... this file isn't needed to build tlaser palcode palcode/platform_tlaser.s: lots of fixups to make the code assemble --- system/alpha/palcode/Makefile | 170 ++++++------------------------------------ 1 file changed, 21 insertions(+), 149 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index 7d4f21cd1..416d347dc 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -1,157 +1,29 @@ -# -# $Id: Makefile,v 1.2 1997/12/16 01:18:38 bugnion Exp $ -# -# Revision History: -# -# $Log: Makefile,v $ -# Revision 1.2 1997/12/16 01:18:38 bugnion -# Removed bogus TLASER offsets from palcode build. -- roll over -# simultaneously with the simulation tree -# -# Revision 1.1.1.1 1997/10/30 23:27:18 verghese -# current 10/29/97 -# -# -# Set environment variables to point to various things: -# -# EB_TOOLBOX - Where your toolset is located -# +#Makefile for palcode +#Works on alpha-linux and builds elf executable -EB_TOOLBOX = /wrl/proj/simos/bin/tools/osf -CPP = /usr/bin/cpp -AS = $(EB_TOOLBOX)/gas -LD = $(EB_TOOLBOX)/gld -DIS = $(EB_TOOLBOX)/alist -STRIP = $(EB_TOOLBOX)/astrip -PVC = $(EB_TOOLBOX)/pvc -MAKEDEP = $(CPP) -MM +#19 December 2003 - Ali Saidi -# -# Define KDEBUG if you want a special unprivileged CALL_PAL -# breakpoint trap handler for remote kernel debugging. -# -# Define CONSOLE_ENTRY to change the sys$enter_console -# transfer address. Default CONSOLE_ENTRY value is 0x10000. -# -# Define DISABLE_CRD to disable CRD. Note that reset sets MCES so that -# correctable errors are ignored anyway, but this actually stops the -# interrupt. -# +GAS = as +CC = g++ +LD = ld +#CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++ +CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++ +GASFLAGS=-m21164 +LDFLAGS=-Ttext 0x4000 -DEFINES = -DDISABLE_CRD -DSIMOS -DBUILD_PALCODE -DEFINES += -I$(SIMTOOLS)/cpus-alpha/simos +SOURCES=platform_tlaser.s osfpal.s +PREPROC := $(SOURCES:.s=.i) +OBJS := $(SOURCES:.s=.o) + +%.i: %.s + $(CC) $(CFLAGS) $< > $@ -CPPFLAGS = -ASFLAGS = -21164 -#LDFLAGS = -Tstrip 0 -Thdr -N -#LDFLAGS = -Tstrip 2000 -Thdr -N # removed bugnion -LDFLAGS = -Tstrip 4000 -Thdr -N -# Source files: -# -# This is the only block in which the list of source files should change. -# -# SFILES - assembler source files -# HFILES - header files -# +%.o: %.i + $(GAS) $(GASFLAGS) -o $@ $< -SFILES = osfpal.s platform.s -HFILES = dc21164.h \ - osf.h \ - macros.h \ - ev5_impure.h \ - cserve.h \ - platform.h - -# Intermediate files: -# -# This block should not change. -# - -IFILES = $(SFILES:.s=.i) - -# Object files: -# -# This block should not change. -# - -OFILES = $(IFILES:.i=.o) - -.DEFAULT: - co -u $< - -.SUFFIXES: -.SUFFIXES: .s .i .o - -.s.i: - $(CPP) $(CPPFLAGS) $(DEFINES) $< $*.i - -osfpal.nh: osfpal - $(STRIP) -a osfpal $@ - $(DIS) osfpal >osfpal.dis - -osfpal: $(OFILES) - echo '$OFILES= ' $(OFILES) - $(LD) $(LDFLAGS) -o $@ $(OFILES) - -osfpal.o: osfpal.i - $(AS) $(ASFLAGS) -o $@ osfpal.i - -platform.o: platform.i - $(AS) $(ASFLAGS) -o $@ platform.i - -pvc: osfpal.lis osfpal.nh osfpal.ent osfpal.map - (export PVC_PAL PVC_ENTRY PVC_MAP PVC_CPU; \ - PVC_PAL=osfpal.nh; \ - PVC_ENTRY=osfpal.ent; \ - PVC_MAP=osfpal.map; \ - PVC_CPU=ev5; \ - $(PVC);) - -osfpal.lis: osfpal - $(DIS) osfpal > $@ - -osfpal.map: osfpal - $(DIS) -m osfpal > $@ - -depend: - @cat < /dev/null > makedep - @(for i in $(SFILES); do echo $$i; \ - $(MAKEDEP) $(DEFINES) $$i | \ - awk '{ if ($$1 != prev) {if (rec != "") print rec; \ - rec = $$0; prev = $$1; } \ - else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \ - else rec = rec " " $$2 } } \ - END { print rec }' | sed 's/\.o/\.i/' \ - >> makedep; done) - @echo '/^# DO NOT DELETE THIS LINE/+1,$$d' > eddep - @echo '$$r makedep' >> eddep - @echo 'w' >> eddep - @cp Makefile Makefile.bak - @ed - Makefile < eddep - @rm -f eddep makedep - @echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile - @echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile - @echo '# see make depend above' >> Makefile +all: $(PREPROC) $(OBJS) + ld $(LDFLAGS) -o osfpal $(OBJS) clean: - rm -f core $(OFILES) $(IFILES) - -clobber: clean - rm -f osfpal.lis osfpal.nh osfpal.map osfpal - -rcsinfo: - rlog RCS/* - -rcsget: - co -u $(HFILES) $(SFILES) - -# DO NOT DELETE THIS LINE -osfpal.i: osfpal.s -platform.i: platform.s ./cserve.h ./platform.h -# DEPENDENCIES MUST END AT END OF FILE -# IF YOU PUT STUFF HERE IT WILL GO AWAY -# see make depend above - - - + rm -f *.o *.i osfpal -- cgit v1.2.3 From ae7e8a46608572fcfc00241084cc215aa5bb9150 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Thu, 15 Jan 2004 02:59:57 -0500 Subject: makefiles updated to make use of cross compile tools console/Makefile: All tools are variables now palcode/Makefile: tool names changed to variables, can build palcode on zizzer --- system/alpha/palcode/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index 416d347dc..071c8bc39 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -3,15 +3,15 @@ #19 December 2003 - Ali Saidi -GAS = as -CC = g++ -LD = ld +GAS = alpha-elf-as +CC = alpha-elf-g++ +LD = alpha-elf-ld #CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++ CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++ GASFLAGS=-m21164 LDFLAGS=-Ttext 0x4000 -SOURCES=platform_tlaser.s osfpal.s +SOURCES=osfpal.s platform_tlaser.s PREPROC := $(SOURCES:.s=.i) OBJS := $(SOURCES:.s=.o) @@ -23,7 +23,7 @@ OBJS := $(SOURCES:.s=.o) all: $(PREPROC) $(OBJS) - ld $(LDFLAGS) -o osfpal $(OBJS) + $(LD) $(LDFLAGS) -o osfpal $(OBJS) clean: rm -f *.o *.i osfpal -- cgit v1.2.3 From 5d3149b69d42b28fef51d9137528937ba2c49141 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 2 Feb 2004 17:40:11 -0500 Subject: Added platfrom_m5 - Our hacked up tsunami palcode and modified palcode makefile to that end. Additionally made a change in console to preserve t7 on call back because linux uses it for the "current" pointer. console/Makefile: Changed makefile back to using gcc and gas rather then trying to cross-compile for now console/console.c: Put code in to save t7 on CallBackFixup() call and changed the system type to Tsunami palcode/Makefile: updated palcode makefile to have targets for tlaser and tsunami --- system/alpha/palcode/Makefile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index 071c8bc39..14a700c73 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -11,9 +11,10 @@ CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++ GASFLAGS=-m21164 LDFLAGS=-Ttext 0x4000 -SOURCES=osfpal.s platform_tlaser.s +SOURCES=osfpal.s platform_tlaser.s platform_m5.s PREPROC := $(SOURCES:.s=.i) -OBJS := $(SOURCES:.s=.o) +TLOBJS = osfpal.o platform_tlaser.o +TSOBJS = osfpal.o platform_m5.o %.i: %.s $(CC) $(CFLAGS) $< > $@ @@ -21,9 +22,14 @@ OBJS := $(SOURCES:.s=.o) %.o: %.i $(GAS) $(GASFLAGS) -o $@ $< +all: tlaser tsunami + +tlaser: $(PREPROC) $(TLOBJS) + $(LD) $(LDFLAGS) -o tl_osfpal $(TLOBJS) -all: $(PREPROC) $(OBJS) - $(LD) $(LDFLAGS) -o osfpal $(OBJS) +tsunami: $(PREPROC) $(TSOBJS) + $(LD) $(LDFLAGS) -o ts_osfpal $(TSOBJS) clean: rm -f *.o *.i osfpal + -- cgit v1.2.3 From 30d0b3a3548185405748f8696fdbede31f6e707a Mon Sep 17 00:00:00 2001 From: Erik Hallnor Date: Mon, 17 May 2004 21:09:20 -0400 Subject: Setup makefile to compile the 3 flavors of palcode for each platform. --- system/alpha/palcode/Makefile | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index 14a700c73..01b232e4c 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -11,11 +11,12 @@ CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++ GASFLAGS=-m21164 LDFLAGS=-Ttext 0x4000 -SOURCES=osfpal.s platform_tlaser.s platform_m5.s +SOURCES=osfpal.s osfpal_cache_copy.s osfpal_cache_copy_unaligned.s platform_tlaser.s \ + platform_m5.s PREPROC := $(SOURCES:.s=.i) -TLOBJS = osfpal.o platform_tlaser.o -TSOBJS = osfpal.o platform_m5.o - +TLOBJS = osfpal.o osfpal_cache_copy.o osfpal_cache_copy_unaligned.o platform_tlaser.o +TSOBJS = osfpal.o osfpal_cache_copy.o osfpal_cache_copy_unaligned.o platform_m5.o + %.i: %.s $(CC) $(CFLAGS) $< > $@ @@ -23,13 +24,17 @@ TSOBJS = osfpal.o platform_m5.o $(GAS) $(GASFLAGS) -o $@ $< all: tlaser tsunami - + tlaser: $(PREPROC) $(TLOBJS) - $(LD) $(LDFLAGS) -o tl_osfpal $(TLOBJS) + $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o + $(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o + $(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o tsunami: $(PREPROC) $(TSOBJS) - $(LD) $(LDFLAGS) -o ts_osfpal $(TSOBJS) + $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o + $(LD) $(LDFLAGS) -o ts_osfpal_cache osfpal_cache_copy.o platform_m5.o + $(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o clean: - rm -f *.o *.i osfpal - + rm -f *.o *.i tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \ + ts_osfpal_cache ts_osfpal_unalign \ No newline at end of file -- cgit v1.2.3 From 496c48d9b2cdf77e7c73c04307db9a0ff19828c0 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Tue, 18 May 2004 16:26:16 -0400 Subject: Major clean up of alpha system files. console/Makefile: palcode/Makefile: moved header files to /h so updated make file for that console/dbmentry.s: console/paljtokern.s: console/paljtoslave.s: upadated to use osf file that the palcode uses, one less file --- system/alpha/palcode/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index 14a700c73..4f0cc969c 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -7,7 +7,7 @@ GAS = alpha-elf-as CC = alpha-elf-g++ LD = alpha-elf-ld #CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++ -CFLAGS=-I . -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++ +CFLAGS=-I . -I ../h -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++ GASFLAGS=-m21164 LDFLAGS=-Ttext 0x4000 @@ -31,5 +31,5 @@ tsunami: $(PREPROC) $(TSOBJS) $(LD) $(LDFLAGS) -o ts_osfpal $(TSOBJS) clean: - rm -f *.o *.i osfpal + rm -f *.o *.i osfpal ts_osfpal tl_osfpal -- cgit v1.2.3 From 8d148125f2d4af2892fe192656b58748af2a76b1 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Tue, 23 Nov 2004 03:20:27 -0500 Subject: cleanup makefile and fix platform bug introduced in last commit palcode/Makefile: Cleanup make file, no more ugly preprocessing steps palcode/platform_m5.S: fix a mistake with m5 platform cleanup from before --- system/alpha/palcode/Makefile | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index ac045e011..2d5e907f1 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -1,40 +1,36 @@ #Makefile for palcode #Works on alpha-linux and builds elf executable -#19 December 2003 - Ali Saidi - GAS = alpha-elf-as CC = alpha-elf-g++ LD = alpha-elf-ld -#CFLAGS=-I ../h -E -P -D SIMOS -nostdinc -nostdinc++ -x c++ -CFLAGS=-I . -I ../h -E -P -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -x c++ -GASFLAGS=-m21164 +CFLAGS=-I . -I ../h -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -Wa,-m21164 LDFLAGS=-Ttext 0x4000 -SOURCES=osfpal.s osfpal_cache_copy.s osfpal_cache_copy_unaligned.s platform_tlaser.s \ - platform_m5.s -PREPROC := $(SOURCES:.s=.i) -TLOBJS = osfpal.o osfpal_cache_copy.o osfpal_cache_copy_unaligned.o platform_tlaser.o -TSOBJS = osfpal.o osfpal_cache_copy.o osfpal_cache_copy_unaligned.o platform_m5.o - -%.i: %.s - $(CC) $(CFLAGS) $< > $@ +TLOBJS = osfpal.o platform_tlaser.o +TLOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o +TSOBJS = osfpal.o platform_m5.o +TSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o -%.o: %.i - $(GAS) $(GASFLAGS) -o $@ $< +%.o: %.S + $(CC) $(CFLAGS) -o $@ -c $< all: tlaser tsunami -tlaser: $(PREPROC) $(TLOBJS) +tlaser: $(TLOBJS) $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o + +tlaser_copy: $(TLOBJS_COPY) $(TLOBJS) $(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o $(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o -tsunami: $(PREPROC) $(TSOBJS) +tsunami: $(TSOBJS) $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o + +tsunami_copy: $(TSOBJS) $(TSOBJS_COPY) $(LD) $(LDFLAGS) -o ts_osfpal_cache osfpal_cache_copy.o platform_m5.o $(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o clean: - rm -f *.o *.i tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \ + rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \ ts_osfpal_cache ts_osfpal_unalign -- cgit v1.2.3 From 5821f37cb6f1875f5912adc37a01139a159e697c Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 6 Dec 2004 11:44:22 -0500 Subject: Add support for tsunami with 64 processors and fix some console bugs I steped on while doing it console/console.c: Allocate more HWRPB pages so we have room for 64 percpu_rpbs Fix writing of Console Relocation Block virtual addresses so that if they are outside of the first page, which they will be with more than 8 processors, the correct adress is written palcode/Makefile: Update makefile for tsunami with 64 processors palcode/platform_m5.S: Add support for tsunami with 64 processors --- system/alpha/palcode/Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index 2d5e907f1..3f4dc9b5e 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -1,21 +1,26 @@ #Makefile for palcode #Works on alpha-linux and builds elf executable -GAS = alpha-elf-as -CC = alpha-elf-g++ -LD = alpha-elf-ld +GAS = alpha-linux-as +CC = alpha-linux-gcc +LD = alpha-linux-ld CFLAGS=-I . -I ../h -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -Wa,-m21164 LDFLAGS=-Ttext 0x4000 TLOBJS = osfpal.o platform_tlaser.o TLOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o TSOBJS = osfpal.o platform_m5.o +TSBOBJS = osfpal.o platform_m5b.o TSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o %.o: %.S $(CC) $(CFLAGS) -o $@ -c $< -all: tlaser tsunami +all: tsunami tsunami_b64 + +platform_m5b.o: platform_m5.S + $(CC) $(CFLAGS) -DBIG_TSUNAMI -o $@ -c $< + tlaser: $(TLOBJS) $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o @@ -27,10 +32,13 @@ tlaser_copy: $(TLOBJS_COPY) $(TLOBJS) tsunami: $(TSOBJS) $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o +tsunami_b64: $(TSBOBJS) + $(LD) $(LDFLAGS) -o tsb_osfpal osfpal.o platform_m5b.o + tsunami_copy: $(TSOBJS) $(TSOBJS_COPY) $(LD) $(LDFLAGS) -o ts_osfpal_cache osfpal_cache_copy.o platform_m5.o $(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o clean: rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \ - ts_osfpal_cache ts_osfpal_unalign + ts_osfpal_cache ts_osfpal_unalign tsb_osfpal -- cgit v1.2.3 From 8cefbc93cfa1ed52836b3b5e28e4c74581e06c9b Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Sat, 4 Jun 2005 18:59:06 -0400 Subject: HP copyrights console/Makefile: Added copyright added CROSS_COMPILE variable removed install target console/console.c: console/dbmentry.S: console/paljtokern.S: console/paljtoslave.S: console/printf.c: h/cia.h: h/cserve.h: h/dc21164FromGasSources.h: h/eb164.h: h/ev5_alpha_defs.h: h/ev5_defs.h: h/ev5_impure.h: h/ev5_osfalpha_defs.h: h/ev5_paldef.h: h/fromHudsonMacros.h: h/fromHudsonOsf.h: h/lib.h: h/platform.h: h/regdefs.h: h/rpb.h: palcode/Makefile: palcode/osfpal.S: palcode/osfpal_cache_copy.S: palcode/osfpal_cache_copy_unaligned.S: palcode/platform_m5.S: palcode/platform_tlaser.S: added hp and our copyright --- system/alpha/palcode/Makefile | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index 3f4dc9b5e..8ea1a4f5f 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -1,9 +1,42 @@ +#Copyright (c) 2003, 2004 +#The Regents of The University of Michigan +#All Rights Reserved +# +#This code is part of the M5 simulator, developed by Nathan Binkert, +#Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions +#from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew +#Schultz. +# +#Permission is granted to use, copy, create derivative works and +#redistribute this software and such derivative works for any purpose, +#so long as the copyright notice above, this grant of permission, and +#the disclaimer below appear in all copies made; and so long as the +#name of The University of Michigan is not used in any advertising or +#publicity pertaining to the use or distribution of this software +#without specific, written prior authorization. +# +#THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE +#UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY PURPOSE, AND WITHOUT +#WARRANTY BY THE UNIVERSITY OF MICHIGAN OF ANY KIND, EITHER EXPRESS OR +#IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF +#MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE REGENTS OF +#THE UNIVERSITY OF MICHIGAN SHALL NOT BE LIABLE FOR ANY DAMAGES, +#INCLUDING DIRECT, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +#DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OF OR IN CONNECTION +#WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS HEREAFTER +#ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + #Makefile for palcode #Works on alpha-linux and builds elf executable -GAS = alpha-linux-as -CC = alpha-linux-gcc -LD = alpha-linux-ld +### If we are not compiling on an alpha, we must use cross tools ### +ifneq ($(ARCHNAME), alpha) +CROSS_COMPILE?=alpha-unknown-linux-gnu- +endif +CC=$(CROSS_COMPILE)gcc +AS=$(CROSS_COMPILE)as +LD=$(CROSS_COMPILE)ld + CFLAGS=-I . -I ../h -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -Wa,-m21164 LDFLAGS=-Ttext 0x4000 @@ -21,7 +54,6 @@ all: tsunami tsunami_b64 platform_m5b.o: platform_m5.S $(CC) $(CFLAGS) -DBIG_TSUNAMI -o $@ -c $< - tlaser: $(TLOBJS) $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o -- cgit v1.2.3 From 55e3b9f74391282bda18d90e05df78c331b59392 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Mon, 27 Jun 2005 17:25:54 -0400 Subject: Major system code cleanup and formatting remove unused code console/Makefile: cleanup Makefile. Remove unneeded -D options console/console.c: Major cleanup and formatting remove unused #ifdef code remove unused #includes rename xxm -> m5 rename simos -> m5 console/dbmentry.S: console/paljtokern.S: console/paljtoslave.S: console/printf.c: Major cleanup and formatting remove unused #ifdef code remove unused #includes rename __start -> _start to get rid of warning. h/cserve.h: h/dc21164FromGasSources.h: h/ev5_alpha_defs.h: h/ev5_defs.h: h/ev5_osfalpha_defs.h: h/ev5_paldef.h: h/fromHudsonMacros.h: h/fromHudsonOsf.h: h/rpb.h: Major cleanup and formatting h/ev5_impure.h: Major cleanup and formatting remove unused #ifdef code palcode/Makefile: cleanup Makefile remove unused -D options unify platform_tlaser.S and platform_tsunami.S into platform.S and generate multiple .o files using various #defines unify osfpal.S osfpal_cache_copy.S and osfpal_cache_copy_unaligned.S into osfpal.S and generate multiple .o files using various #defines palcode/osfpal.S: Major cleanup and formatting remove unused #defines remove unused #if code merge copy code into this file. palcode/platform.S: Major cleanup and formatting remove unused #defines remove unused #if code merge platform code into this file. --- system/alpha/palcode/Makefile | 112 ++++++++++++++++++++++++------------------ 1 file changed, 64 insertions(+), 48 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index 8ea1a4f5f..34b60cee3 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -1,75 +1,91 @@ -#Copyright (c) 2003, 2004 -#The Regents of The University of Michigan -#All Rights Reserved +# Copyright (c) 2003, 2004 +# The Regents of The University of Michigan +# All Rights Reserved # -#This code is part of the M5 simulator, developed by Nathan Binkert, -#Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions -#from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew -#Schultz. +# This code is part of the M5 simulator, developed by Nathan Binkert, +# Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions +# from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew +# Schultz. # -#Permission is granted to use, copy, create derivative works and -#redistribute this software and such derivative works for any purpose, -#so long as the copyright notice above, this grant of permission, and -#the disclaimer below appear in all copies made; and so long as the -#name of The University of Michigan is not used in any advertising or -#publicity pertaining to the use or distribution of this software -#without specific, written prior authorization. +# Permission is granted to use, copy, create derivative works and +# redistribute this software and such derivative works for any purpose, +# so long as the copyright notice above, this grant of permission, and +# the disclaimer below appear in all copies made; and so long as the +# name of The University of Michigan is not used in any advertising or +# publicity pertaining to the use or distribution of this software +# without specific, written prior authorization. # -#THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE -#UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY PURPOSE, AND WITHOUT -#WARRANTY BY THE UNIVERSITY OF MICHIGAN OF ANY KIND, EITHER EXPRESS OR -#IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF -#MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE REGENTS OF -#THE UNIVERSITY OF MICHIGAN SHALL NOT BE LIABLE FOR ANY DAMAGES, -#INCLUDING DIRECT, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL -#DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OF OR IN CONNECTION -#WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS HEREAFTER -#ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -#Makefile for palcode -#Works on alpha-linux and builds elf executable +# THIS SOFTWARE IS PROVIDED AS IS, WITHOUT REPRESENTATION FROM THE +# UNIVERSITY OF MICHIGAN AS TO ITS FITNESS FOR ANY PURPOSE, AND WITHOUT +# WARRANTY BY THE UNIVERSITY OF MICHIGAN OF ANY KIND, EITHER EXPRESS OR +# IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE REGENTS OF +# THE UNIVERSITY OF MICHIGAN SHALL NOT BE LIABLE FOR ANY DAMAGES, +# INCLUDING DIRECT, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +# DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OF OR IN CONNECTION +# WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS HEREAFTER +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +# Makefile for palcode +# Works on alpha-linux and builds elf executable ### If we are not compiling on an alpha, we must use cross tools ### -ifneq ($(ARCHNAME), alpha) +ifneq ($(shell uname -m), alpha) CROSS_COMPILE?=alpha-unknown-linux-gnu- endif CC=$(CROSS_COMPILE)gcc AS=$(CROSS_COMPILE)as LD=$(CROSS_COMPILE)ld -CFLAGS=-I . -I ../h -D SIMOS -D BUILD_PALCODE -nostdinc -nostdinc++ -Wa,-m21164 +CFLAGS=-I . -I ../h -nostdinc -nostdinc++ -Wa,-m21164 LDFLAGS=-Ttext 0x4000 -TLOBJS = osfpal.o platform_tlaser.o -TLOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o -TSOBJS = osfpal.o platform_m5.o -TSBOBJS = osfpal.o platform_m5b.o -TSOBJS_COPY = osfpal_cache_copy.o osfpal_cache_copy_unaligned.o +TLOBJS = osfpal.o platform_tlaser.o +TLOBJS_COPY = osfpal_cache_copy.o platform_tlaser.o +TLOBJS_COPY_UNALIGNED = osfpal_cache_copy_unaligned.o platform_tlaser.o +TSOBJS = osfpal.o platform_tsunami.o +TSBOBJS = osfpal.o platform_bigtsunami.o +TSOBJS_COPY = osfpal_cache_copy.o platform_tsunami.o +TSOBJS_COPY_UNALIGNED = osfpal_cache_copy_unaligned.o platform_bigtsunami.o + +all: tlaser tsunami tsunami_b64 -%.o: %.S +all_copy: tlaser tlaser_copy tsunami tsunami_b64 tsunami_copy + +osfpal.o: osfpal.S $(CC) $(CFLAGS) -o $@ -c $< -all: tsunami tsunami_b64 - -platform_m5b.o: platform_m5.S +osfpal_cache_copy.o: osfpal.S + $(CC) $(CFLAGS) -DCACHE_COPY -o $@ -c $< + +osfpal_cache_copy_unaligned.o: osfpal.S + $(CC) $(CFLAGS) -DCACHE_COPY -DCACHE_COPY_UNALIGNED -o $@ -c $< + +platform_tlaser.o: platform.S + $(CC) $(CFLAGS) -DTLASER -o $@ -c $< + +platform_tsunami.o: platform.S + $(CC) $(CFLAGS) -DTSUNAMI -o $@ -c $< + +platform_bigtsunami.o: platform.S $(CC) $(CFLAGS) -DBIG_TSUNAMI -o $@ -c $< - + tlaser: $(TLOBJS) - $(LD) $(LDFLAGS) -o tl_osfpal osfpal.o platform_tlaser.o + $(LD) $(LDFLAGS) -o tl_osfpal $(TLOBJS) -tlaser_copy: $(TLOBJS_COPY) $(TLOBJS) - $(LD) $(LDFLAGS) -o tl_osfpal_cache osfpal_cache_copy.o platform_tlaser.o - $(LD) $(LDFLAGS) -o tl_osfpal_unalign osfpal_cache_copy_unaligned.o platform_tlaser.o +tlaser_copy: $(TLOBJS_COPY) $(TLOBJS_COPY_UNALIGNED) + $(LD) $(LDFLAGS) -o tl_osfpal_cache $(TLOBJS_COPY) + $(LD) $(LDFLAGS) -o tl_osfpal_unalign $(TLOBJS_COPY_UNALIGNED) tsunami: $(TSOBJS) - $(LD) $(LDFLAGS) -o ts_osfpal osfpal.o platform_m5.o + $(LD) $(LDFLAGS) -o ts_osfpal $(TSOBJS) tsunami_b64: $(TSBOBJS) - $(LD) $(LDFLAGS) -o tsb_osfpal osfpal.o platform_m5b.o + $(LD) $(LDFLAGS) -o tsb_osfpal $(TSBOBJS) -tsunami_copy: $(TSOBJS) $(TSOBJS_COPY) - $(LD) $(LDFLAGS) -o ts_osfpal_cache osfpal_cache_copy.o platform_m5.o - $(LD) $(LDFLAGS) -o ts_osfpal_unalign osfpal_cache_copy_unaligned.o platform_m5.o +tsunami_copy: $(TSOBJS_COPY) $(TSOBJS_COPY_UNALIGNED) + $(LD) $(LDFLAGS) -o ts_osfpal_cache $(TSOBJS_COPY) + $(LD) $(LDFLAGS) -o ts_osfpal_unalign $(TSOBJS_COPY_UNALIGNED) clean: rm -f *.o tl_osfpal tl_osfpal_cache tl_osfpal_unalign ts_osfpal \ -- cgit v1.2.3 From 4d1f6a8aca88b08b258ffaf17e192d19f860877e Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Wed, 16 Aug 2006 15:26:52 -0400 Subject: update our copyrights to the new format --- system/alpha/palcode/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'system/alpha/palcode/Makefile') diff --git a/system/alpha/palcode/Makefile b/system/alpha/palcode/Makefile index 34b60cee3..2f1eded33 100644 --- a/system/alpha/palcode/Makefile +++ b/system/alpha/palcode/Makefile @@ -2,10 +2,7 @@ # The Regents of The University of Michigan # All Rights Reserved # -# This code is part of the M5 simulator, developed by Nathan Binkert, -# Erik Hallnor, Steve Raasch, and Steve Reinhardt, with contributions -# from Ron Dreslinski, Dave Greene, Lisa Hsu, Ali Saidi, and Andrew -# Schultz. +# This code is part of the M5 simulator. # # Permission is granted to use, copy, create derivative works and # redistribute this software and such derivative works for any purpose, @@ -25,6 +22,9 @@ # DAMAGES, WITH RESPECT TO ANY CLAIM ARISING OUT OF OR IN CONNECTION # WITH THE USE OF THE SOFTWARE, EVEN IF IT HAS BEEN OR IS HEREAFTER # ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. +# +# Authors: Nathan L. Binkert +# Ali G. Saidi # Makefile for palcode # Works on alpha-linux and builds elf executable -- cgit v1.2.3