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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [cpu/] [or1k/] [rtems.s] - Blame information for rev 389

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
# file rtems.s
2
#
3
#  This file contains the single entry point code for
4
#  the or1k port of RTEMS.
5
#
6
#  Author: Chris Ziomkowski <chris@asics.ws>
7
#
8
#  This file is provided "AS IS" without any warranty expressed
9
#  or implied.
10
#
11
#  This file is distributed as part of the RTEMS package. It
12
#  is governed by the RTEMS copyright and license agreement as
13
#  stated below:
14
#
15
#  COPYRIGHT (c) 1989-1997.
16
#  On-Line Applications Research Corporation (OAR).
17
#  Copyright assigned to U.S. Government, 1994.
18
#
19
#  The license and distribution terms for this file may in
20
#  the file LICENSE in this distribution or at
21
#  http://www.OARcorp.com/rtems/license.html.
22
#
23
#
24
#  This file is designed to work only with a COFF version of the gnu
25
#  assembler and includes necessary debugging information. Other
26
#  assemblers will probably fail.
27
#
28
.file   "rtems.s"
29
 
30
.text
31
        .align  4
32
.proc   _RTEMS
33
#       .def    _RTEMS
34
#       .val    _RTEMS
35
#       .scl    2
36
#       .type   041
37
#       .endef
38
        .global _RTEMS
39
_RTEMS:
40
#       .def    .bf
41
#       .val    .
42
#       .scl    101
43
#       .endef
44
 
45
#
46
# We assume the index to the function to call is stored
47
# in r12. Simply offset from this and transfer control to
48
# to the appropriate location. By calculating the offset
49
# first, loading the high word and then adding the low
50
# word, we can conserve a register.
51
#
52
        l.slli          r12,r12,2
53
        l.movhi         r12,hi(__Entry_points)
54
        l.addi          r12,r12,lo(__Entry_points)
55
        l.lwz           r12,0(r12)
56
        l.jr            r12
57
        l.nop
58
 
59
#        .def    .ef
60
#        .val    .
61
#        .scl    101
62
#       .endef
63
 
64
.endproc _RTEMS
65
#       .def    _RTEMS
66
#       .val    .
67
#       .scl    -1
68
#       .endef
69
 

powered by: WebSVN 2.1.0

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