4.104.114.84.95
Last change
on this file since 8cc57f6 was
8cc57f6,
checked in by Joel Sherrill <joel.sherrill@…>, on 03/31/99 at 23:24:51
|
Modified to be valid m68k code on all CPU models.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
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-1998. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * Copyright assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.OARcorp.com/rtems/license.html. |
---|
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 | |
---|
43 | moveal (a0),a0 |
---|
44 | jmpl (a0) |
---|
45 | |
---|
46 | END_CODE |
---|
47 | END |
---|
Note: See
TracBrowser
for help on using the repository browser.