summaryrefslogtreecommitdiff
path: root/firmware/target
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target')
-rw-r--r--firmware/target/hosted/system-hosted.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/target/hosted/system-hosted.c b/firmware/target/hosted/system-hosted.c
index 7f0949daf2..cad84ac868 100644
--- a/firmware/target/hosted/system-hosted.c
+++ b/firmware/target/hosted/system-hosted.c
@@ -84,7 +84,9 @@ static void sig_handler(int sig, siginfo_t *siginfo, void *context)
84 84
85void power_off(void) 85void power_off(void)
86{ 86{
87 backlight_hw_off();
87 system("/sbin/poweroff"); 88 system("/sbin/poweroff");
89 while (1); /* halt */
88} 90}
89 91
90void system_init(void) 92void system_init(void)
@@ -109,7 +111,9 @@ void system_init(void)
109 111
110void system_reboot(void) 112void system_reboot(void)
111{ 113{
114 backlight_hw_off();
112 system("/sbin/reboot"); 115 system("/sbin/reboot");
116 while (1); /* halt */
113} 117}
114 118
115void system_exception_wait(void) 119void system_exception_wait(void)