Skip to content

Commit

Permalink
xtensa: ISS: exit simulator in case of halt or poweroff
Browse files Browse the repository at this point in the history
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Max Filippov authored and Chris Zankel committed Oct 3, 2012
1 parent 8bac832 commit 2375317
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arch/xtensa/platforms/iss/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 2375317

Please sign in to comment.