summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2012-09-17 05:44:47 +0400
committerChris Zankel <chris@zankel.net>2012-10-03 15:12:19 -0700
commit237531714fbe07b27f5b2fbf239df962adfc50d7 (patch)
treea0480e33b82034b9d0222edecbdc217449be2190
parent8bac83289a061e9b080d500533f29b5822de5b80 (diff)
downloadlinux-3.10-237531714fbe07b27f5b2fbf239df962adfc50d7.tar.gz
linux-3.10-237531714fbe07b27f5b2fbf239df962adfc50d7.tar.bz2
linux-3.10-237531714fbe07b27f5b2fbf239df962adfc50d7.zip
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>
-rw-r--r--arch/xtensa/platforms/iss/setup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/xtensa/platforms/iss/setup.c b/arch/xtensa/platforms/iss/setup.c
index e7ce16b2444..927acf378ea 100644
--- a/arch/xtensa/platforms/iss/setup.c
+++ b/arch/xtensa/platforms/iss/setup.c
@@ -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)
{