source: rtems/bsps/moxie/moxiesim/start/start.S @ fbcd7c8f

5
Last change on this file since fbcd7c8f was fbcd7c8f, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:19:28

bsps: Move start files to bsps

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 675 bytes
Line 
1/* Copyright (C) 2011, 2013, 2014  Anthony Green */
2
3/* moxie start up file. */
4
5#include "bspopts.h"
6
7#if defined(HAVE_OLD_MOXIE_ASM)
8#define sub sub.l
9#endif
10       
11        .text
12        .global _start
13_start:
14        ldi.l   $sp, _stack     /* load up stack pointer */
15        xor     $fp, $fp        /* zero fp to allow unwinders to stop */
16
17        /* zero the bss area */
18        ldi.l   $r0, __bss_start__
19        xor     $r1, $r1
20        ldi.l   $r2, __bss_end__
21        sub     $r2, $r0
22        jsra    memset
23
24        ldi.l   $r0, 0x0        # pass in NULL
25        jsra    boot_card
26        jmpa    _start          # restart
27.Lend:
28        .size   _start,(.Lend-_start)
Note: See TracBrowser for help on using the repository browser.