Changeset 1848


Ignore:
Timestamp:
Mar 14, 2005, 12:35:54 AM (20 years ago)
Author:
bird
Message:

Remove the BSD profiler. Added resp and wild variations.

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 to 1.13
    r1847 r1848  
    3939    .text
    4040
     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
    4153__text:
    4254
     
    4860    addl    $8, %esp
    4961#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)
    5963    call    ___init_app
    6064    /* esp points to main() call frame. */
    6165    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
    6981#endif
    7082    call    __CRT_init
  • trunk/src/emx/src/lib/startup/386/dll0.s

    • Property cvs2svn:cvs-rev changed from 1.14 to 1.15
    r1847 r1848  
    3737    .text
    3838
     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
    3952__text:
    4053    cmpl    $0, 8(%esp)
     
    6881do_init:
    6982#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)
    7984    call    ___init_dll
    8085    add     $4, %esp
  • trunk/src/emx/src/lib/startup/startup.smak

    • Property cvs2svn:cvs-rev changed from 1.16 to 1.17
    r1847 r1848  
    1010include common.smak
    1111
    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     
     13define 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))))))
    1616
    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)
    2621       
    27 $(eval .OBJS += $.omf/src/lib/startup/crt0$(i).obj)
    28 $$.omf/src/lib/startup/crt0$(i).obj: $$.aout/src/lib/startup/crt0$(i).o
    29         $$(call DO.EMXOMF,-m__text)
     22ifeq ($(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))))))
    3025       
    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
    3327        $$(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)
     30endif   
    3431endef
    3532
    3633# generate
    37 $(foreach i,hi hinofork hinoux hinoforknoux nofork noforknoux noux,$(eval $(def_startup)))
     34$(foreach i,\
     35hi \
     36hinofork \
     37hinoforknoux \
     38hinoforknouxwild \
     39hinoforknouxwildresp \
     40hinoforknouxresp \
     41hinoforkwild \
     42hinoforkwildresp \
     43hinoforkresp \
     44hinoux \
     45hinouxwild \
     46hinouxwildresp \
     47hinouxresp \
     48hiwild \
     49hiwildresp \
     50hiresp \
     51\
     52nofork \
     53noforknoux \
     54noforknouxwild \
     55noforknouxwildresp \
     56noforknouxresp \
     57noforkwild \
     58noforkwildresp \
     59noforkresp \
     60\
     61noux \
     62nouxwild \
     63nouxwildresp \
     64nouxresp \
     65\
     66wild \
     67wildresp \
     68\
     69resp \
     70,$(eval $(def_startup)))
    3871
    3972
    40 libc: emxomf ld $(.DIRS) $(.OBJS)
    41 
     73.DIRS := $(sort $(dir $(.OBJS)))
     74TARGDIRS += $(.DIRS)
    4275INS.FILES += $(addprefix $(INS)lib/,$(notdir $(.OBJS)))
    4376$(addprefix $(INS)lib/,$(notdir $(.OBJS))): $(.OBJS)
    4477        $(call CP,$^,$(dir $@))
    4578
    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)
     79libc: emxomf ld $(.DIRS) $(.OBJS)
     80startup: $(.DIRS) $(.OBJS)
    5481
    5582# This rule doesn't work if the aout/src/lib/startup/ directory does not
     
    5986
    6087# Additional dependencies to help stupid make.
    61 $.omf/src/lib/startup/mcrt0.obj: $.aout/src/lib/startup/mcrt0.o
    62         $(call DO.EMXOMF,-m__text)
    63 $.omf/src/lib/startup/gcrt0.obj: $.aout/src/lib/startup/gcrt0.o
    64         $(call DO.EMXOMF,-m__text)
    6588$.omf/src/lib/startup/386/dll0.obj: $.aout/src/lib/startup/386/dll0.o
    6689        $(call DO.EMXOMF,-l__text)
Note: See TracChangeset for help on using the changeset viewer.