4.104.114.84.95
Line | |
---|
1 | /* rtems.s |
---|
2 | * |
---|
3 | * This file contains the single entry point code for |
---|
4 | * the m68k implementation of RTEMS. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * All rights assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
11 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
12 | * notice must appear in all copies of this file and its derivatives. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | |
---|
18 | #include <asm.h> |
---|
19 | |
---|
20 | /* |
---|
21 | * There seems to be no reason to have two versions of this. |
---|
22 | * The following version should work across the entire family. |
---|
23 | * The worst assumption is that gcc will put entry in a scratch |
---|
24 | * register and not screw up the stack. |
---|
25 | * |
---|
26 | * NOTE: This is a 68020 version: |
---|
27 | * |
---|
28 | * jmpl @(%%d0:l:4)@(__Entry_points) |
---|
29 | */ |
---|
30 | |
---|
31 | EXTERN (_Entry_points) |
---|
32 | |
---|
33 | BEGIN_CODE |
---|
34 | |
---|
35 | .align 4 |
---|
36 | .global SYM (RTEMS) |
---|
37 | |
---|
38 | SYM (RTEMS): |
---|
39 | moveal SYM (_Entry_points), a0 |
---|
40 | lsll #2, d0 |
---|
41 | addal d0, a0 |
---|
42 | moveal @(a0),a0 |
---|
43 | jmpl @(a0) |
---|
44 | |
---|
45 | END_CODE |
---|
46 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.