source: rtems/c/src/exec/score/cpu/m68k/rtems.S @ f719ef1

4.104.114.84.95
Last change on this file since f719ef1 was 0162910, checked in by Joel Sherrill <joel.sherrill@…>, on 12/14/98 at 23:15:38

Patch from Ralf Corsepius <corsepiu@…> to rename all
.s files to .S in conformance with GNU conventions. This is a
minor step along the way to supporting automake.

  • Property mode set to 100644
File size: 1.1 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
38SYM (RTEMS):
39        moveal    SYM (_Entry_points), a0
40        lsll      #2, d0
41        addal     d0, a0
42
43#if (M68K_COLDFIRE_ARCH == 0)
44        moveal    @(a0),a0
45        jmpl      @(a0)
46#else
47        moveal    (a0),a0
48        jmpl      (a0)
49#endif
50
51        END_CODE
52END
Note: See TracBrowser for help on using the repository browser.