From 72988f3c0ca39e3ec627b8ebcb1638bdb4926d4c Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 29 Mar 2012 08:12:44 +0200 Subject: android: implement system_exception_wait and system_reboot, so that the panicf() screen can be exited. Change-Id: I1fb095a7ae01a99c84722eeec199b1007b0f6088 --- firmware/target/hosted/android/system-android.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'firmware/target/hosted/android') diff --git a/firmware/target/hosted/android/system-android.c b/firmware/target/hosted/android/system-android.c index 614d89bfd1..d96edcd637 100644 --- a/firmware/target/hosted/android/system-android.c +++ b/firmware/target/hosted/android/system-android.c @@ -25,6 +25,8 @@ #include #include "config.h" #include "system.h" +#include "power.h" +#include "button.h" @@ -40,8 +42,16 @@ uintptr_t *stackend; extern int main(void); extern void telephony_init_device(void); -void system_exception_wait(void) { } -void system_reboot(void) { } +void system_exception_wait(void) +{ + intptr_t dummy = 0; + while(button_read_device(&dummy) != BUTTON_BACK); +} + +void system_reboot(void) +{ + power_off(); +} /* this is used to return from the entry point of the native library. */ static jmp_buf poweroff_buf; -- cgit v1.2.3