source: rtems/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_global_handler.c @ 4bd4c9e

4.115
Last change on this file since 4bd4c9e was 4bd4c9e, checked in by Sebastian Huber <sebastian.huber@…>, on 11/23/12 at 08:32:52

bsps/powerpc: Add PPC_EXC_CONFIG_USE_FIXED_HANDLER

In case a BSP enables this option, then fixed high level exception
handler will be used. For normal asynchronous exceptions this is
bsp_interrupt_dispatch() and for other exceptions this is the handler
from the read-only ppc_exc_handler_table. The global handler is
C_exception_handler(). This avoids some dependencies on valid
read-write data.

  • Property mode set to 100644
File size: 618 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup ppc_exc
5 *
6 * @brief PowerPC Exceptions implementation.
7 */
8
9/*
10 * Copyright (C) 1999 Eric Valette (valette@crf.canon.fr)
11 *                    Canon Centre Recherche France.
12 *
13 * Derived from file "libcpu/powerpc/new-exceptions/bspsupport/vectors_init.c".
14 *
15 * The license and distribution terms for this file may be
16 * found in the file LICENSE in this distribution or at
17 * http://www.rtems.com/license/LICENSE.
18 */
19
20#include <bsp/vectors.h>
21
22void C_exception_handler(BSP_Exception_frame *excPtr)
23{
24  rtems_fatal(
25    RTEMS_FATAL_SOURCE_EXCEPTION,
26    (rtems_fatal_code) excPtr
27  );
28}
Note: See TracBrowser for help on using the repository browser.