+ added startup modules for compact, large and huge model that define the

memory model and include the common startup code prt0comn.asm (which is not
  yet adapted for the new models, but eventually will be)

git-svn-id: trunk@27262 -
This commit is contained in:
nickysn 2014-03-24 13:42:42 +00:00
parent f4c463b6bd
commit 0236c2823a
6 changed files with 100 additions and 76 deletions

3
.gitattributes vendored
View File

@ -8511,7 +8511,10 @@ rtl/msdos/dos.pp svneol=native#text/plain
rtl/msdos/msmouse.pp svneol=native#text/plain
rtl/msdos/ports.pp svneol=native#text/plain
rtl/msdos/printer.pp svneol=native#text/plain
rtl/msdos/prt0c.asm svneol=native#text/plain
rtl/msdos/prt0comn.asm svneol=native#text/plain
rtl/msdos/prt0h.asm svneol=native#text/plain
rtl/msdos/prt0l.asm svneol=native#text/plain
rtl/msdos/prt0m.asm svneol=native#text/plain
rtl/msdos/prt0s.asm svneol=native#text/plain
rtl/msdos/prt0t.asm svneol=native#text/plain

View File

@ -793,229 +793,229 @@ ifeq ($(FULL_TARGET),i8086-msdos)
override TARGET_IMPLICITUNITS+=exeinfo cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 cp437 cp646 cp850 cp856 cp866 cp874 cp8859_1 cp8859_5 cp8859_2 cp852
endif
ifeq ($(FULL_TARGET),i386-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-go32v2)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-win32)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-os2)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-freebsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-beos)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-haiku)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-netbsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-solaris)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-qnx)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-netware)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-openbsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-wdosx)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-darwin)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-emx)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-watcom)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-netwlibc)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-wince)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-symbian)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-nativent)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-iphonesim)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i386-android)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),m68k-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),m68k-freebsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),m68k-netbsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),m68k-amiga)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),m68k-atari)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),m68k-openbsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),m68k-palmos)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),m68k-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc-netbsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc-amiga)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc-macos)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc-darwin)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc-morphos)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc-wii)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc-aix)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),sparc-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),sparc-netbsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),sparc-solaris)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),sparc-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),x86_64-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),x86_64-freebsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),x86_64-netbsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),x86_64-solaris)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),x86_64-openbsd)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),x86_64-darwin)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),x86_64-win64)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),x86_64-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),arm-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),arm-palmos)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),arm-darwin)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),arm-wince)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),arm-gba)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),arm-nds)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),arm-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),arm-symbian)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),arm-android)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc64-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc64-darwin)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc64-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),powerpc64-aix)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),avr-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),armeb-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),armeb-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),mips-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),mipsel-linux)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),mipsel-embedded)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),mipsel-android)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),jvm-java)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),jvm-android)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
ifeq ($(FULL_TARGET),i8086-msdos)
override TARGET_LOADERS+=prt0s prt0t prt0m # exceptn fpu
override TARGET_LOADERS+=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
endif
override INSTALL_FPCPACKAGE=y
ifeq ($(FULL_TARGET),i386-linux)
@ -2661,6 +2661,12 @@ prt0t$(OEXT) : prt0t.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0t$(OEXT) prt0t.asm
prt0m$(OEXT) : prt0m.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0m$(OEXT) prt0m.asm
prt0c$(OEXT) : prt0c.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0c$(OEXT) prt0c.asm
prt0l$(OEXT) : prt0l.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0l$(OEXT) prt0l.asm
prt0h$(OEXT) : prt0h.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0h$(OEXT) prt0h.asm
system$(PPUEXT) : system.pp $(SYSDEPS)
$(COMPILER) -Us -Sg system.pp
uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp

View File

@ -4,7 +4,7 @@
[package]
main=rtl
[target]
loaders=prt0s prt0t prt0m # exceptn fpu
loaders=prt0s prt0t prt0m prt0c prt0l prt0h # exceptn fpu
units=system uuchar objpas strings dos heaptrc lineinfo sysconst sysutils \
math macpas iso7185 rtlconst typinfo types \
strutils getopts fgl classes \
@ -71,6 +71,12 @@ prt0t$(OEXT) : prt0t.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0t$(OEXT) prt0t.asm
prt0m$(OEXT) : prt0m.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0m$(OEXT) prt0m.asm
prt0c$(OEXT) : prt0c.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0c$(OEXT) prt0c.asm
prt0l$(OEXT) : prt0l.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0l$(OEXT) prt0l.asm
prt0h$(OEXT) : prt0h.asm prt0comn.asm
$(NASM) -f obj -o $(UNITTARGETDIRPREFIX)prt0h$(OEXT) prt0h.asm
#
# System Units (System, Objpas, Strings)
#

3
rtl/msdos/prt0c.asm Normal file
View File

@ -0,0 +1,3 @@
; nasm -f obj -o prt0c.o prt0c.asm
%define __COMPACT__
%include "prt0comn.asm"

3
rtl/msdos/prt0h.asm Normal file
View File

@ -0,0 +1,3 @@
; nasm -f obj -o prt0h.o prt0h.asm
%define __HUGE__
%include "prt0comn.asm"

3
rtl/msdos/prt0l.asm Normal file
View File

@ -0,0 +1,3 @@
; nasm -f obj -o prt0l.o prt0l.asm
%define __LARGE__
%include "prt0comn.asm"