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

4.115
Last change on this file since 7e32b62 was 7e32b62, checked in by Sebastian Huber <sebastian.huber@…>, on 11/17/12 at 11:31:22

score: Add RTEMS_FATAL_SOURCE_POWERPC_EXCEPTION

Add ppc_exc_print_frame_and_context() which prints an exception frame
and the context via printk().

The global exception handler will call now rtems_fatal() with source
RTEMS_FATAL_SOURCE_POWERPC_EXCEPTION. The fatal code will contain the
pointer value to the exception frame.

  • Property mode set to 100644
File size: 686 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
22exception_handler_t globalExceptHdl = C_exception_handler;
23
24void C_exception_handler(BSP_Exception_frame *excPtr)
25{
26  rtems_fatal(
27    RTEMS_FATAL_SOURCE_POWERPC_EXCEPTION,
28    (rtems_fatal_code) excPtr
29  );
30}
Note: See TracBrowser for help on using the repository browser.