Changeset 1848
- Timestamp:
- Mar 14, 2005, 12:35:54 AM (20 years ago)
- Location:
- trunk/src/emx/src/lib/startup
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/lib/startup/386/crt0.s
-
Property cvs2svn:cvs-rev
changed from
1.12
to1.13
r1847 r1848 39 39 .text 40 40 41 #if defined(HIGHMEM) 42 #define FLAG_HIGHMEM 1 43 #else 44 #define FLAG_HIGHMEM 0 45 #endif 46 47 #if defined(NOUNIX) 48 #define FLAG_NOUNIX 2 49 #else 50 #define FLAG_NOUNIX 0 51 #endif 52 41 53 __text: 42 54 … … 48 60 addl $8, %esp 49 61 #endif 50 #if defined(HIGHMEM) && defined(NOUNIX) 51 pushl $3 /* vote for high mem for default heap; & less unixness. */ 52 #elif defined(HIGHMEM) 53 pushl $1 /* vote for high mem for default heap */ 54 #elif defined(NOUNIX) 55 pushl $2 /* vote against high memory for deault heap; lexx unixness */ 56 #else 57 pushl $0 /* veto against high mem for default heap. */ 58 #endif 62 pushl $(FLAG_HIGHMEM + FLAG_NOUNIX) 59 63 call ___init_app 60 64 /* esp points to main() call frame. */ 61 65 cld 62 #if defined (MCRT0) 63 pushl $__mcleanup 64 call _atexit 65 pushl $__etext 66 pushl $__text 67 call _monstartup 68 addl $3*4, %esp 66 #ifdef ARGS_RESP 67 lea 4(%esp), %eax /* &argv */ 68 movl %esp, %ecx /* &argc */ 69 pushl %eax 70 pushl %ecx 71 call __response 72 addl $8, %esp 73 #endif 74 #ifdef ARGS_WILD 75 lea 4(%esp), %eax /* &argv */ 76 movl %esp, %ecx /* &argc */ 77 pushl %eax 78 pushl %ecx 79 call __wildcard 80 addl $8, %esp 69 81 #endif 70 82 call __CRT_init -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/386/dll0.s
-
Property cvs2svn:cvs-rev
changed from
1.14
to1.15
r1847 r1848 37 37 .text 38 38 39 40 #if defined(HIGHMEM) 41 #define FLAG_HIGHMEM 1 42 #else 43 #define FLAG_HIGHMEM 0 44 #endif 45 46 #if defined(NOUNIX) 47 #define FLAG_NOUNIX 2 48 #else 49 #define FLAG_NOUNIX 0 50 #endif 51 39 52 __text: 40 53 cmpl $0, 8(%esp) … … 68 81 do_init: 69 82 #endif 70 #if defined(HIGHMEM) && defined(NOUNIX) 71 pushl $3 /* vote for high mem for default heap; & less unixness. */ 72 #elif defined(HIGHMEM) 73 pushl $1 /* vote for high mem for default heap */ 74 #elif defined(NOUNIX) 75 pushl $2 /* vote against high memory for deault heap; lexx unixness */ 76 #else 77 pushl $0 /* veto against high mem for default heap. */ 78 #endif 83 pushl $(FLAG_HIGHMEM + FLAG_NOUNIX) 79 84 call ___init_dll 80 85 add $4, %esp -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/startup/startup.smak
-
Property cvs2svn:cvs-rev
changed from
1.16
to1.17
r1847 r1848 10 10 include common.smak 11 11 12 .OBJS += $(addprefix $.$(.TKIND.DIR)src/lib/startup/,mcrt0.o gcrt0.o) \ 13 $(addprefix $.omf/src/lib/startup/,mcrt0.obj gcrt0.obj $(CPU)/crt0.obj $(CPU)/dll0.obj ) 14 .DIRS := $(sort $(dir $(.OBJS))) 15 TARGDIRS += $(.DIRS)12 # define what to do 13 define def_startup 14 $$.aout/src/lib/startup/386/crt0$(i).o: src/lib/startup/386/crt0.s 15 $$(call DO.COMPILE.s, $(subst wild, -DARGS_WILD, $(subst resp, -DARGS_RESP, $(subst noux, -DNOUNIX,$(subst nofork, -DNOFORK,$(subst hi, -DHIGHMEM, $i)))))) 16 16 17 # define to do 18 define def_startup 19 $(eval .OBJS += $.aout/src/lib/startup/crt0$(i).o) 20 $$.aout/src/lib/startup/crt0$(i).o: src/lib/startup/386/crt0.s 21 $$(call DO.COMPILE.s, $(subst noux, -DNOUNIX,$(subst nofork, -DNOFORK,$(subst hi, -DHIGHMEM, $i)))) 22 23 $(eval .OBJS += $.aout/src/lib/startup/dll0$(i).o) 24 $$.aout/src/lib/startup/dll0$(i).o: src/lib/startup/386/dll0.s 25 $$(call DO.COMPILE.s, $(subst noux, -DNOUNIX,$(subst nofork, -DNOFORK,$(subst hi, -DHIGHMEM, $i)))) 17 $$.omf/src/lib/startup/386/crt0$(i).obj: $$.aout/src/lib/startup/386/crt0$(i).o 18 $$(call DO.EMXOMF,-m__text) 19 $(eval .OBJS += $.aout/src/lib/startup/386/crt0$(i).o \ 20 $.omf/src/lib/startup/386/crt0$(i).obj) 26 21 27 $(eval .OBJS += $.omf/src/lib/startup/crt0$(i).obj)28 $$. omf/src/lib/startup/crt0$(i).obj: $$.aout/src/lib/startup/crt0$(i).o29 $$(call DO. EMXOMF,-m__text)22 ifeq ($(subst resp,,$(subst wild,,$(i))),$(i)) 23 $$.aout/src/lib/startup/386/dll0$(i).o: src/lib/startup/386/dll0.s 24 $$(call DO.COMPILE.s, $(subst wild, -DARGS_WILD, $(subst resp, -DARGS_RESP, $(subst noux, -DNOUNIX,$(subst nofork, -DNOFORK,$(subst hi, -DHIGHMEM, $i)))))) 30 25 31 $(eval .OBJS += $.omf/src/lib/startup/dll0$(i).obj) 32 $$.omf/src/lib/startup/dll0$(i).obj: $$.aout/src/lib/startup/dll0$(i).o 26 $$.omf/src/lib/startup/386/dll0$(i).obj: $$.aout/src/lib/startup/386/dll0$(i).o 33 27 $$(call DO.EMXOMF,-l__text) 28 $$(eval .OBJS += $.aout/src/lib/startup/386/dll0$(i).o \ 29 $.omf/src/lib/startup/386/dll0$(i).obj) 30 endif 34 31 endef 35 32 36 33 # generate 37 $(foreach i,hi hinofork hinoux hinoforknoux nofork noforknoux noux,$(eval $(def_startup))) 34 $(foreach i,\ 35 hi \ 36 hinofork \ 37 hinoforknoux \ 38 hinoforknouxwild \ 39 hinoforknouxwildresp \ 40 hinoforknouxresp \ 41 hinoforkwild \ 42 hinoforkwildresp \ 43 hinoforkresp \ 44 hinoux \ 45 hinouxwild \ 46 hinouxwildresp \ 47 hinouxresp \ 48 hiwild \ 49 hiwildresp \ 50 hiresp \ 51 \ 52 nofork \ 53 noforknoux \ 54 noforknouxwild \ 55 noforknouxwildresp \ 56 noforknouxresp \ 57 noforkwild \ 58 noforkwildresp \ 59 noforkresp \ 60 \ 61 noux \ 62 nouxwild \ 63 nouxwildresp \ 64 nouxresp \ 65 \ 66 wild \ 67 wildresp \ 68 \ 69 resp \ 70 ,$(eval $(def_startup))) 38 71 39 72 40 libc: emxomf ld $(.DIRS) $(.OBJS)41 73 .DIRS := $(sort $(dir $(.OBJS))) 74 TARGDIRS += $(.DIRS) 42 75 INS.FILES += $(addprefix $(INS)lib/,$(notdir $(.OBJS))) 43 76 $(addprefix $(INS)lib/,$(notdir $(.OBJS))): $(.OBJS) 44 77 $(call CP,$^,$(dir $@)) 45 78 46 $.aout/src/lib/startup/mcrt0.o: src/lib/startup/386/crt0.s 47 $(call DO.COMPILE.s, -DMCRT0) 48 49 $.aout/src/lib/startup/gcrt0.o: src/lib/startup/386/crt0.s src/lib/startup/gmon.c 50 $(CC) $(CFLAGS) -x assembler-with-cpp -DMCRT0 -o tmp1.o $< 51 $(CC) $(CFLAGS) -o tmp2.o src/lib/startup/gmon.c 52 $(call GETTOOL2,ld) -r -o $@ tmp1.o tmp2.o 53 $(call RM,tmp1.o tmp2.o) 79 libc: emxomf ld $(.DIRS) $(.OBJS) 80 startup: $(.DIRS) $(.OBJS) 54 81 55 82 # This rule doesn't work if the aout/src/lib/startup/ directory does not … … 59 86 60 87 # Additional dependencies to help stupid make. 61 $.omf/src/lib/startup/mcrt0.obj: $.aout/src/lib/startup/mcrt0.o62 $(call DO.EMXOMF,-m__text)63 $.omf/src/lib/startup/gcrt0.obj: $.aout/src/lib/startup/gcrt0.o64 $(call DO.EMXOMF,-m__text)65 88 $.omf/src/lib/startup/386/dll0.obj: $.aout/src/lib/startup/386/dll0.o 66 89 $(call DO.EMXOMF,-l__text) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.