summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/shared/exceptions/ppc_exc_global_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/powerpc/shared/exceptions/ppc_exc_global_handler.c')
-rw-r--r--bsps/powerpc/shared/exceptions/ppc_exc_global_handler.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/bsps/powerpc/shared/exceptions/ppc_exc_global_handler.c b/bsps/powerpc/shared/exceptions/ppc_exc_global_handler.c
new file mode 100644
index 0000000000..9597f8719a
--- /dev/null
+++ b/bsps/powerpc/shared/exceptions/ppc_exc_global_handler.c
@@ -0,0 +1,28 @@
+/**
+ * @file
+ *
+ * @ingroup ppc_exc
+ *
+ * @brief PowerPC Exceptions implementation.
+ */
+
+/*
+ * Copyright (C) 1999 Eric Valette (valette@crf.canon.fr)
+ * Canon Centre Recherche France.
+ *
+ * Derived from file "libcpu/powerpc/new-exceptions/bspsupport/vectors_init.c".
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#include <bsp/vectors.h>
+
+void C_exception_handler(BSP_Exception_frame *excPtr)
+{
+ rtems_fatal(
+ RTEMS_FATAL_SOURCE_EXCEPTION,
+ (rtems_fatal_code) excPtr
+ );
+}