1
0
Fork 0
forked from len0rd/rockbox

android: implement system_exception_wait and system_reboot, so that the panicf() screen can be exited.

Change-Id: I1fb095a7ae01a99c84722eeec199b1007b0f6088
This commit is contained in:
Thomas Martitz 2012-03-29 08:12:44 +02:00
parent 148a80e1d1
commit 72988f3c0c

View file

@ -25,6 +25,8 @@
#include <pthread.h>
#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;