gonzui


Format: Advanced Search

tkernel_2/lib/crt/crt0/src/sysdepend/tef_em1d/crtir.Sbare sourcepermlink (0.00 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    T-Kernel 2.0 Software Package
    4:  *
    5:  *    Copyright 2011 by Ken Sakamura.
    6:  *    This software is distributed under the latest version of T-License 2.x.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by T-Engine Forum(http://www.t-engine.org/) at 2011/05/17.
   10:  *    Modified by TRON Forum(http://www.tron.org/) at 2015/06/01.
   11:  *
   12:  *----------------------------------------------------------------------
   13:  */
   14: 
   15: /*
   16:  *      crtir.S
   17:  *
   18:  *      C startup
   19:  *
   20:  *      Relocatable module version
   21:  *      _GLOBAL_OFFSET_TABLE_ is not used
   22:  *      this means it is not Position Independent
   23:  */
   24: 
   25: .macro FUNC_START
   26:         .arm
   27:         mov    ip, sp                     // r3 is used to align stack
   28:                                         // modulo 8 bytes
   29:         stmdb  sp!, {r3-r9, sl, fp, ip, lr, pc}
   30:         sub    fp, ip, #4
   31: .endm
   32: 
   33:         .section       .init
   34:         .balign                4
   35:         .global                _init
   36: _init:
   37:         FUNC_START
   38: 
   39:         .section       .fini
   40:         .balign                4
   41:         .global                _fini
   42: _fini:
   43:         FUNC_START