source: rtems/c/src/lib/libbsp/moxie/moxiesim/start/start.S @ 032e5e4

4.115
Last change on this file since 032e5e4 was 032e5e4, checked in by Anthony Green <green@…>, on Feb 27, 2013 at 6:13:20 PM

Add sample Moxie BSP for GDB sim

Signed-off-by: Anthony Green <green@…>

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