diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-10-01 14:28:32 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-10-02 15:27:33 +0200 |
commit | 245cad54f23b708d0a58874a8bd273b296434c77 (patch) | |
tree | cc8407e0dc4cf9bde1b340cc3dc12522b6030867 /c/src/lib/libbsp/powerpc/mpc55xxevb/startup | |
parent | bsp/mpc55xx: Add and use MPC55XX_CHIP_FAMILY (diff) | |
download | rtems-245cad54f23b708d0a58874a8bd273b296434c77.tar.bz2 |
bsp/mpc55xx: Fix bsp_idle_thread()
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mpc55xxevb/startup')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mpc55xxevb/startup/idle-thread.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/idle-thread.c b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/idle-thread.c new file mode 100644 index 0000000000..a83640b55f --- /dev/null +++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/startup/idle-thread.c @@ -0,0 +1,36 @@ +/** + * @file + * + * @ingroup mpc55xx + * + * @brief bsp_idle_thread() implementation. + */ + +/* + * Copyright (c) 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.com/license/LICENSE. + */ + +#include <bsp.h> + +#include <mpc55xx/regs.h> + +void *bsp_idle_thread(uintptr_t arg) +{ + while (true) { + #ifdef MPC55XX_HAS_WAIT_INSTRUCTION + __asm__ volatile ("wait"); + #endif + } + + return NULL; +} |