Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23753171 authored by Max Filippov's avatar Max Filippov Committed by Chris Zankel
Browse files

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



Signed-off-by: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarChris Zankel <chris@zankel.net>
parent 8bac8328
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -46,14 +46,14 @@ void platform_pcibios_init(void)


void platform_halt(void)
void platform_halt(void)
{
{
	printk (" ** Called platform_halt(), looping forever! **\n");
	pr_info(" ** Called platform_halt() **\n");
	while (1);
	__asm__ __volatile__("movi a2, 1\nsimcall\n");
}
}


void platform_power_off(void)
void platform_power_off(void)
{
{
	printk (" ** Called platform_power_off(), looping forever! **\n");
	pr_info(" ** Called platform_power_off() **\n");
	while (1);
	__asm__ __volatile__("movi a2, 1\nsimcall\n");
}
}
void platform_restart(void)
void platform_restart(void)
{
{