source: rtems/c/src/lib/libbsp/c4x/c4xsim/start/start.S @ 820d1ab0

4.104.115
Last change on this file since 820d1ab0 was 820d1ab0, checked in by Chris Johns <chrisj@…>, on 04/28/09 at 06:34:00

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

  • start/start.S: Update for boot_card command line change.
  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*
2 *  This start.S is a combination of the files boot.s and crt0.s
3 *  provided by Herman ...XXX
4 */
5
6#warning Call to boot_card has changed and needs checking.
7#warning The call is "void boot_card(const char* cmdline);"
8#warning You need to pass a NULL.
9#warning Please check and remove these warnings.
10
11        ; .file "crt0.s"
12        .ref    _c_int00
13        .global start
14        .global _start
15
16        .if     .tms320C40
17
18        .sect   ".const"
19mem_control:
20        .word   000100000h
21mem_data:
22        .word   03ef78050h
23
24        .text
25start:
26_start:
27        ldi     0800h,st
28        ldp     @mem_control
29        ldi     @mem_control,ar0
30        ldp     @mem_data
31        ldi     @mem_data,r0
32        sti     r0,*+ar0(0)
33        sti     r0,*+ar0(4)
34        br      _c_int00
35
36        .else
37
38        .sect   ".const"
39mem_control:
40        .word   000808000h
41mem_data:
42        .word   000001f00h
43
44        .text
45start:
46_start:
47        ldi     0800h,st
48        ldp     @mem_control
49        ldi     @mem_control,ar0
50        ldp     @mem_data
51        ldi     @mem_data,r0
52        sti     r0,*+ar0(0)
53        sti     r0,*+ar0(4)
54        br      _c_int00
55
56        .endif
57        ; .file "boot.s"
58        .global __stack
59        .global _c_int00
60        .ref    .bss
61        .ref    _boot_card
62        .ref    _exit
63
64__stack: .usect  ".stack",0
65        .text
66stack_addr:  .word  __stack
67
68_c_int00:
69        ldp     stack_addr
70        ldi     @stack_addr,sp
71        ldi     sp,ar3
72        ldp     .bss            ; For the small model, set up the DP to .bss
73        ldi     0,ar2           ; make sure cmdline=0 with regparm
74        push    ar2             ; and memparm
75        call    _boot_card
76        call    _sim_exit
Note: See TracBrowser for help on using the repository browser.