mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 03:22:48 -05:00
android: implement system_exception_wait and system_reboot, so that the panicf() screen can be exited.
Change-Id: I1fb095a7ae01a99c84722eeec199b1007b0f6088
This commit is contained in:
parent
148a80e1d1
commit
72988f3c0c
1 changed files with 12 additions and 2 deletions
|
|
@ -25,6 +25,8 @@
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
#include "power.h"
|
||||||
|
#include "button.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -40,8 +42,16 @@ uintptr_t *stackend;
|
||||||
extern int main(void);
|
extern int main(void);
|
||||||
extern void telephony_init_device(void);
|
extern void telephony_init_device(void);
|
||||||
|
|
||||||
void system_exception_wait(void) { }
|
void system_exception_wait(void)
|
||||||
void system_reboot(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. */
|
/* this is used to return from the entry point of the native library. */
|
||||||
static jmp_buf poweroff_buf;
|
static jmp_buf poweroff_buf;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue