diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-20 10:35:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-04-20 13:52:14 +0200 |
commit | 99648958668d3a33ee57974479b36201fe303f34 (patch) | |
tree | 6f27ea790e2823c6156e71219a4f54680263fac6 /bsps/sparc/leon3/start/bspidle.S | |
parent | bsps: Move start files to bsps (diff) | |
download | rtems-99648958668d3a33ee57974479b36201fe303f34.tar.bz2 |
bsps: Move startup files to bsps
Adjust build support files to new directory layout.
This patch is a part of the BSP source reorganization.
Update #3285.
Diffstat (limited to 'bsps/sparc/leon3/start/bspidle.S')
-rw-r--r-- | bsps/sparc/leon3/start/bspidle.S | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/bsps/sparc/leon3/start/bspidle.S b/bsps/sparc/leon3/start/bspidle.S new file mode 100644 index 0000000000..8557ff42a1 --- /dev/null +++ b/bsps/sparc/leon3/start/bspidle.S @@ -0,0 +1,28 @@ +/* + * Idle Thread Body + * + * This routine puts LEON3 in power-down mode. + * + * COPYRIGHT (c) 2004. + * Gaisler Research. + * + * 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 <rtems/asm.h> + +/* LEON specific power-down function */ + + .align 4 + PUBLIC(bsp_idle_thread) + PUBLIC(leon3_power_down_loop) +SYM(bsp_idle_thread): +SYM(leon3_power_down_loop): +pwdloop: mov %g0, %asr19 + lda [%sp] 1, %g0 ! Needed for UT699 and GR712 + ba,a pwdloop + nop |