gonzui


Format: Advanced Search

tkernel_2/lib/libtm/src/sysdepend/tef_em1d/tmsvc.hbare sourcepermlink (0.08 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:  *      @(#)tmsvc.h (libtm/EM1-D512)
   17:  *
   18:  *      T-Engine Reference Board definitions
   19:  *
   20:  *      * Used by assembler
   21:  */
   22: 
   23: #include <tk/sysdef.h>
   24: 
   25: /*
   26:  * T-Monitor service call
   27:  */
   28: .macro _TMCALL func, fno
   29:         .text
   30:         .balign        4
   31:         .globl Csym(\func)
   32:         .type  Csym(\func), %function
   33: Csym(\func):
   34:         stmfd  sp!, {lr}
   35:         ldr    ip, =\fno
   36:         swi    SWI_MONITOR
   37:         ldmfd  sp!, {lr}
   38:         bx     lr
   39: .endm
   40: 
   41: #define TMCALL(func, fno)       _TMCALL func, fno