source: rtems/c/src/lib/libbsp/powerpc/shared/src/ppc-exc-handler-table.c @ f665f13

4.115
Last change on this file since f665f13 was f665f13, checked in by Sebastian Huber <sebastian.huber@…>, on 11/19/12 at 07:37:04

bsps/powerpc: Add PPC_EXC_CONFIG_BOOKE_ONLY

In combination with the PPC_EXC_CONFIG_USE_FIXED_HANDLER option this
removes all dependencies on valid read-write data. The exception
handling must be statically configured and all components reside in
read-only sections.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/*
2 * Copyright (c) 2012 embedded brains GmbH.  All rights reserved.
3 *
4 *  embedded brains GmbH
5 *  Obere Lagerstr. 30
6 *  82178 Puchheim
7 *  Germany
8 *  <rtems@embedded-brains.de>
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.rtems.com/license/LICENSE.
13 */
14
15#include <bsp/vectors.h>
16
17#ifdef PPC_EXC_CONFIG_USE_FIXED_HANDLER
18
19#ifndef PPC_EXC_CONFIG_BOOKE_ONLY
20static int ppc_exc_interrupt_dispatch(BSP_Exception_frame *f, unsigned vector)
21{
22  bsp_interrupt_dispatch();
23
24  return 0;
25}
26#endif /* PPC_EXC_CONFIG_BOOKE_ONLY */
27
28const ppc_exc_handler_t ppc_exc_handler_table [LAST_VALID_EXC + 1] = {
29  ppc_exc_handler_default,
30  ppc_exc_handler_default,
31  ppc_exc_handler_default,
32  ppc_exc_handler_default,
33  ppc_exc_handler_default,
34#ifndef PPC_EXC_CONFIG_BOOKE_ONLY
35  ppc_exc_interrupt_dispatch,
36#else /* PPC_EXC_CONFIG_BOOKE_ONLY */
37  ppc_exc_handler_default,
38#endif /* PPC_EXC_CONFIG_BOOKE_ONLY */
39  ppc_exc_handler_default,
40  ppc_exc_handler_default,
41  ppc_exc_handler_default,
42  ppc_exc_handler_default,
43  ppc_exc_handler_default,
44  ppc_exc_handler_default,
45  ppc_exc_handler_default,
46  ppc_exc_handler_default,
47  ppc_exc_handler_default,
48  ppc_exc_handler_default,
49  ppc_exc_handler_default,
50  ppc_exc_handler_default,
51  ppc_exc_handler_default,
52  ppc_exc_handler_default,
53  ppc_exc_handler_default,
54  ppc_exc_handler_default,
55  ppc_exc_handler_default,
56  ppc_exc_handler_default,
57  ppc_exc_handler_default,
58  ppc_exc_handler_default,
59  ppc_exc_handler_default,
60  ppc_exc_handler_default,
61  ppc_exc_handler_default,
62  ppc_exc_handler_default,
63  ppc_exc_handler_default,
64  ppc_exc_handler_default
65};
66
67#endif /* PPC_EXC_CONFIG_USE_FIXED_HANDLER */
Note: See TracBrowser for help on using the repository browser.