4.115
Last change
on this file since 5139d21 was
5139d21,
checked in by Anthony Green <green@…>, on 01/10/15 at 19:04:06
|
moxiesim: Add conditional logic to handle old and new gas syntax
|
-
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.