diff options
Diffstat (limited to 'libgloss/m68k/cf-crt0.S')
-rw-r--r-- | libgloss/m68k/cf-crt0.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libgloss/m68k/cf-crt0.S b/libgloss/m68k/cf-crt0.S index 51a6aa700..f86b789c3 100644 --- a/libgloss/m68k/cf-crt0.S +++ b/libgloss/m68k/cf-crt0.S @@ -20,6 +20,17 @@ .extern __heap_end .weak __heap_end .extern __start1 + + /* __reset should cause a HALT in a hosted executable and + fall into __start for an unhosted executable. The user is + free to override this with their own declaration. */ + .globl __reset + .weak __reset +__reset: +#if HOSTED + HALT +#endif + .globl __start __start: /* Initialize stack */ @@ -42,3 +53,4 @@ __start: move.l d1,sp@- move.l fp,sp@- /* Dummy return address */ jmp __start1 + |