source: rtems/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/exc-vector-base.S @ 6c454104

4.115
Last change on this file since 6c454104 was c383372, checked in by Sebastian Huber <sebastian.huber@…>, on 11/13/12 at 14:01:24

bsps/powerpc: Add and use bsp_text input section

  • Property mode set to 100644
File size: 2.8 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup mpc55xx_asm
5 *
6 * @brief Exception minimum prologues.
7 */
8
9/*
10 * Copyright (c) 2011-2012 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.com/license/LICENSE.
21 */
22
23/**
24 * @defgroup mpc55xx_asm Assembler files
25 *
26 * @ingroup mpc55xx
27 */
28
29#include <bspopts.h>
30
31#include <bsp/vectors.h>
32
33        .globl mpc55xx_exc_vector_base
34
35        .section ".bsp_text", "ax"
36
37#if 5510 <= MPC55XX_CHIP_TYPE && MPC55XX_CHIP_TYPE <= 5517
38        .align 12
39#else
40        .align 16
41#endif
42
43mpc55xx_exc_vector_base:
44
45        stw     r1, ppc_exc_lock_crit@sdarel(r13)
46        stw     r4, ppc_exc_vector_register_crit@sdarel(r13)
47        li      r4, -32767
48        b       ppc_exc_wrap_bookE_crit
49        stwu    r1, -EXC_GENERIC_SIZE(r1)
50        stw     r4, GPR4_OFFSET(r1)
51        li      r4, 2
52        b       ppc_exc_wrap_nopush_bookE_crit
53        stwu    r1, -EXC_GENERIC_SIZE(r1)
54        stw     r4, GPR4_OFFSET(r1)
55        li      r4, 3
56        b       ppc_exc_wrap_nopush_std
57        stwu    r1, -EXC_GENERIC_SIZE(r1)
58        stw     r4, GPR4_OFFSET(r1)
59        li      r4, 4
60        b       ppc_exc_wrap_nopush_std
61        stwu    r1, -PPC_EXC_MINIMAL_FRAME_SIZE(r1)
62        stw     r4, PPC_EXC_VECTOR_PROLOGUE_OFFSET(r1)
63        li      r4, -32763
64        b       ppc_exc_wrap_async_normal
65        stwu    r1, -EXC_GENERIC_SIZE(r1)
66        stw     r4, GPR4_OFFSET(r1)
67        li      r4, 6
68        b       ppc_exc_wrap_nopush_std
69        stwu    r1, -EXC_GENERIC_SIZE(r1)
70        stw     r4, GPR4_OFFSET(r1)
71        li      r4, 7
72        b       ppc_exc_wrap_nopush_std
73        stwu    r1, -EXC_GENERIC_SIZE(r1)
74        stw     r4, GPR4_OFFSET(r1)
75        li      r4, 8
76        b       ppc_exc_wrap_nopush_std
77        stwu    r1, -EXC_GENERIC_SIZE(r1)
78        stw     r4, GPR4_OFFSET(r1)
79        li      r4, 12
80        b       ppc_exc_wrap_nopush_std
81        stwu    r1, -EXC_GENERIC_SIZE(r1)
82        stw     r4, GPR4_OFFSET(r1)
83        li      r4, 24
84        b       ppc_exc_wrap_nopush_std
85        stwu    r1, -PPC_EXC_MINIMAL_FRAME_SIZE(r1)
86        stw     r4, PPC_EXC_VECTOR_PROLOGUE_OFFSET(r1)
87        li      r4, -32752
88        b       ppc_exc_wrap_async_normal
89        stwu    r1, -PPC_EXC_MINIMAL_FRAME_SIZE(r1)
90        stw     r4, PPC_EXC_VECTOR_PROLOGUE_OFFSET(r1)
91        li      r4, -32749
92        b       ppc_exc_wrap_async_normal
93        stw     r1, ppc_exc_lock_crit@sdarel(r13)
94        stw     r4, ppc_exc_vector_register_crit@sdarel(r13)
95        li      r4, -32748
96        b       ppc_exc_wrap_bookE_crit
97        stwu    r1, -EXC_GENERIC_SIZE(r1)
98        stw     r4, GPR4_OFFSET(r1)
99        li      r4, 18
100        b       ppc_exc_wrap_nopush_std
101        stwu    r1, -EXC_GENERIC_SIZE(r1)
102        stw     r4, GPR4_OFFSET(r1)
103        li      r4, 17
104        b       ppc_exc_wrap_nopush_std
105        stwu    r1, -EXC_GENERIC_SIZE(r1)
106        stw     r4, GPR4_OFFSET(r1)
107        li      r4, 13
108        b       ppc_exc_wrap_nopush_bookE_crit
109        stwu    r1, -EXC_GENERIC_SIZE(r1)
110        stw     r4, GPR4_OFFSET(r1)
111        li      r4, 10
112        b       ppc_exc_wrap_nopush_std
113        stwu    r1, -EXC_GENERIC_SIZE(r1)
114        stw     r4, GPR4_OFFSET(r1)
115        li      r4, 25
116        b       ppc_exc_wrap_nopush_std
117        stwu    r1, -EXC_GENERIC_SIZE(r1)
118        stw     r4, GPR4_OFFSET(r1)
119        li      r4, 26
120        b       ppc_exc_wrap_nopush_std
121        stwu    r1, -EXC_GENERIC_SIZE(r1)
122        stw     r4, GPR4_OFFSET(r1)
123        li      r4, 15
124        b       ppc_exc_wrap_nopush_std
Note: See TracBrowser for help on using the repository browser.