source: rtems/c/src/lib/libbsp/m68k/ods68302/start/debugreset.S @ 0dbc344e

4.104.114.84.95
Last change on this file since 0dbc344e was 0dbc344e, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 13:46:45

2003-09-04 Joel Sherrill <joel@…>

  • start/debugreset.S, start/reset.S: Removed incorrect statement about copyright assignment.
  • Property mode set to 100644
File size: 1.9 KB
Line 
1/* 
2 *  $Id$
3 *
4 *  Re-written the gen68302 start-up code.
5 * 
6 *  Uses gas syntax only, removed the OAR asm.h.
7 * 
8 *  Supplies a complete vector table in ROM.
9 * 
10 *  Manages all vectors with seperate handlers to trap unhandled
11 *  execptions.
12 * 
13 *  Uses the target specific header file to get the runtime
14 *  configuration
15 * 
16 *  COPYRIGHT (c) 1996
17 *  Objective Design Systems Pty Ltd (ODS)
18 *       
19 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
20 *  On-Line Applications Research Corporation (OAR).
21 *
22 */
23
24|
25| Entry from debugger
26|
27        .sect   .text
28
29|
30| Start
31|
32| Entered from a hardware reset.
33|
34       
35        .global start                           | Default entry point for GNU
36start:
37
38        move.w  #0x2700,%sr                     | Disable all interrupts
39
40        |
41        | zero out uninitialized data area
42        |
43
44zerobss:
45        moveal  #_clear_end,%a0                 | find end of .bss
46        moveal  #_clear_start,%a1               | find beginning of .bss
47        moveq   #0,%d0
48       
49zerobss_loop:
50       
51        movel   %d0,%a1@+                       | to zero out uninitialized
52        cmpal   %a0,%a1
53        jlt     zerobss_loop                    | loop until end reached
54
55        movel   %d0,_stack_init                 | load stack top
56
57        movw    #0x3700,%sr                     | SUPV MODE,INTERRUPTS OFF!!!
58        movel   %d0,%a7                         | set master stack pointer
59        movel   %d0,%a6                         | set base pointer
60
61        jsr     boot_phase_3
62
63|               
64| Initialised data
65|
66
67        .sect   .data
68       
69        .global start_frame
70       
71start_frame:
72        .space  4,0
73
74|
75| Uninitialised data
76|
77
78        .sect   .bss
79       
80        .global environ
81        .align  2
82       
83environ:
84        .long   0
85
86        .global heap_size
87        .set    heap_size,0x2000
88
89        .global stack_size
90        .set    stack_size,0x1000
91
92
Note: See TracBrowser for help on using the repository browser.