source: rtems/c/src/lib/libbsp/h8300/h8sim/start/start.S @ 820d1ab0

4.104.115
Last change on this file since 820d1ab0 was 820d1ab0, checked in by Chris Johns <chrisj@…>, on Apr 28, 2009 at 6:34:00 AM

2009-04-28 Chris Johns <chrisj@…>

  • start/start.S: Update for boot_card command line change.
  • Property mode set to 100644
File size: 1002 bytes
Line 
1; h8/300 and h8/300h start up file.
2
3#warning Call to boot_card has changed and needs checking.
4#warning The call is "void boot_card(const char* cmdline);"
5#warning You need to pass a NULL.
6#warning Please check and remove these warnings.
7       
8#ifdef __H8300__
9
10        .text
11        .global _start
12_start:
13        mov.w   #_stack_init,sp
14        mov.w   #_edata,r0
15        mov.w   #_clear_end,r1
16        mov.w   #0,r2
17.loop:  mov.w   r2,@r0
18        adds    #2,r0
19        cmp     r1,r0
20        blo     .loop
21        ;       call __main
22        jsr     @_boot_card
23        mov.w   #0,r0           ; indicate reason to exit
24        sleep
25        jmp     @_start         ; restart
26#else
27
28#if defined(__H8300H__)
29        .h8300h
30#else /* must be __H300S__ */
31        .h8300s
32#endif
33        .text
34        .global _start
35_start:
36        mov.l   #_stack_init,sp
37        mov.l   #_edata,er0
38        mov.l   #_clear_end,er1
39        mov.w   #0,r2           ; not sure about alignment requirements
40.loop:  mov.w   r2,@er0         ; playing it safe for now
41        adds    #2,er0
42        cmp.l   er1,er0
43        blo     .loop
44        ;       call __main
45        jsr     @_boot_card
46        mov.w   #0,r0           ; indicate reason to exit
47        sleep
48        jmp     @_start         ; restart
49
50#endif /* end of H8300 */
Note: See TracBrowser for help on using the repository browser.