OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [cpu/] [m68k/] [rtems.S] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  rtems.s
2
 *
3
 *  This file contains the single entry point code for
4
 *  the m68k implementation of RTEMS.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: rtems.S,v 1.2 2001-09-27 11:59:28 chris Exp $
14
 */
15
 
16
 
17
#include 
18
 
19
/*
20
 *  There seems to be no reason to have two versions of this.
21
 *  The following version should work across the entire family.
22
 *  The worst assumption is that gcc will put entry in a scratch
23
 *  register and not screw up the stack.
24
 *
25
 *  NOTE:  This is a 68020 version:
26
 *
27
 *    jmpl    @(%%d0:l:4)@(__Entry_points)
28
 */
29
 
30
        EXTERN (_Entry_points)
31
 
32
        BEGIN_CODE
33
 
34
        .align  4
35
        .global SYM (RTEMS)
36
 
37
SYM (RTEMS):
38
        moveal    SYM (_Entry_points), a0
39
        lsll      #2, d0
40
        addal     d0, a0
41
 
42
        moveal    (a0),a0
43
        jmpl      (a0)
44
 
45
        END_CODE
46
END

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.