提交 23753171 编写于 作者: M Max Filippov 提交者: Chris Zankel

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

Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: NChris Zankel <chris@zankel.net>
上级 8bac8328
......@@ -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)
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册