Changeset 25f9823 in mainline for libc/arch/mips32/src/entry.s


Ignore:
Timestamp:
2006-05-17T21:52:56Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2b399cc
Parents:
04552a80
Message:

create special entry point for drivers (don't initialize I/O)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/arch/mips32/src/entry.s

    r04552a80 r25f9823  
    2929.text
    3030.section .init, "ax"
    31 .global __start
     31.global __entry
     32.global __entry_driver
    3233.set noreorder
    3334.option pic2
     
    3637#
    3738#
    38 .ent __start
    39 __start:
     39.ent __entry
     40__entry:
     41        .frame $sp, 32, $31
     42        .cpload $25
     43       
     44       
     45        # Mips o32 may store its arguments on stack, make space (16 bytes),
     46        # so that it could work with -O0
     47        # Make space additional 16 bytes for the stack frame
     48
     49        addiu $sp, -32
     50        .cprestore 16   # Allow PIC code
     51       
     52        jal __main
     53        nop
     54       
     55        jal __io_init
     56        nop
     57       
     58        jal main
     59        nop
     60       
     61        jal __exit
     62        nop
     63
     64.ent __entry_driver
     65__entry_driver:
    4066        .frame $sp, 32, $31
    4167        .cpload $25
     
    5783        jal __exit
    5884        nop
    59        
    60 .end __start
    6185
    6286# Alignment of output section data to 0x4000
Note: See TracChangeset for help on using the changeset viewer.