/* * Copyright 2018, Data61 * Commonwealth Scientific and Industrial Research Organisation (CSIRO) * ABN 41 687 119 230. * * This software may be distributed and modified according to the terms of * the GNU General Public License version 2. Note that NO WARRANTY is provided. * See "LICENSE_GPLv2.txt" for details. * * @TAG(DATA61_GPL) */ /* * * Copyright 2016, 2017 Hesham Almatary, Data61/CSIRO * Copyright 2015, 2016 Hesham Almatary */ #include #include void idle_thread(void) { while (1) { asm volatile("wfi"); } } void VISIBLE halt(void) { #ifdef CONFIG_PRINTING printf("halting..."); #endif sbi_shutdown(); UNREACHABLE(); }