mirror of https://gitee.com/openkylin/linux.git
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:
parent
8bac83289a
commit
237531714f
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue