summaryrefslogtreecommitdiffstats
path: root/bsps/powerpc/mpc55xxevb/start/restart.c
diff options
context:
space:
mode:
Diffstat (limited to 'bsps/powerpc/mpc55xxevb/start/restart.c')
-rw-r--r--bsps/powerpc/mpc55xxevb/start/restart.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/bsps/powerpc/mpc55xxevb/start/restart.c b/bsps/powerpc/mpc55xxevb/start/restart.c
new file mode 100644
index 0000000000..495aa39a95
--- /dev/null
+++ b/bsps/powerpc/mpc55xxevb/start/restart.c
@@ -0,0 +1,25 @@
+/*
+ * Copyright (c) 2008-2012 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Obere Lagerstr. 30
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * 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.h>
+
+void bsp_restart(void *addr)
+{
+ rtems_interrupt_level level;
+ void (*start)(void) = addr;
+
+ (void) level;
+ rtems_interrupt_disable(level);
+ (*start)();
+}