xtensa: ISS: exit simulator in case of halt or poweroff

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
This commit is contained in:
Max Filippov 2012-09-17 05:44:47 +04:00 committed by Chris Zankel
parent 8bac83289a
commit 237531714f
1 changed files with 4 additions and 4 deletions

View File

@ -46,14 +46,14 @@ void platform_pcibios_init(void)
void platform_halt(void)
{
printk (" ** Called platform_halt(), looping forever! **\n");
while (1);
pr_info(" ** Called platform_halt() **\n");
__asm__ __volatile__("movi a2, 1\nsimcall\n");
}
void platform_power_off(void)
{
printk (" ** Called platform_power_off(), looping forever! **\n");
while (1);
pr_info(" ** Called platform_power_off() **\n");
__asm__ __volatile__("movi a2, 1\nsimcall\n");
}
void platform_restart(void)
{