gonzui


Format: Advanced Search

mtkernel_3/kernel/sysdepend/cpu/core/rxv2/reset_hdl.Sbare sourcepermlink (0.00 seconds)

Search this content:

    1: /*
    2:  *----------------------------------------------------------------------
    3:  *    micro T-Kernel 3.00.01
    4:  *
    5:  *    Copyright (C) 2006-2020 by Ken Sakamura.
    6:  *    This software is distributed under the T-License 2.2.
    7:  *----------------------------------------------------------------------
    8:  *
    9:  *    Released by TRON Forum(http://www.tron.org) at 2020/05/29.
   10:  *
   11:  *----------------------------------------------------------------------
   12:  */
   13: 
   14: #include <sys/machine.h>
   15: #ifdef CPU_CORE_RXV2
   16: 
   17: /*
   18:  *      reset_hdr.S (RXv2)
   19:  *      Reset handler
   20:  */
   21: 
   22: #define _in_asm_source_
   23: 
   24: #include <sys/sysdef.h>
   25: 
   26: /*
   27:  * ---------------------------------------------------------------------- 
   28:  *      Entry Point at Reset
   29:  * ----------------------------------------------------------------------
   30:  */
   31:         .section .text
   32:         .global Csym(Reset_Handler)
   33: 
   34:         .extern Csym(reset_main )
   35: 
   36: Csym(Reset_Handler):
   37:         mvtc   #INTSTACK_TOP, ISP                /* initialise interrupt stack pointer */
   38: 
   39:         mvtc   #_exvectors_start, extb           /* setup exception vector */
   40:         mvtc   #_rvectors_start, intb            /* setup interrupt vector */
   41: 
   42:         mvtc   #FPSW_VAL, fpsw                   /* setup FPSW */
   43: 
   44:         mov    #Csym(reset_main),r7            /* goto reset_handler main routine  */
   45:         jsr    r7                              /* no return */
   46: 
   47: loop_here:
   48:         bra loop_here
   49: 
   50:         .end
   51: 
   52: #endif  /* CPU_CORE_RXV2 */