summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/android/system-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/hosted/android/system-target.h')
-rw-r--r--firmware/target/hosted/android/system-target.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/firmware/target/hosted/android/system-target.h b/firmware/target/hosted/android/system-target.h
index 12610de42f..aba7e6d6c0 100644
--- a/firmware/target/hosted/android/system-target.h
+++ b/firmware/target/hosted/android/system-target.h
@@ -18,22 +18,16 @@
18 * KIND, either express or implied. 18 * KIND, either express or implied.
19 * 19 *
20 ****************************************************************************/ 20 ****************************************************************************/
21
21#ifndef __SYSTEM_TARGET_H__ 22#ifndef __SYSTEM_TARGET_H__
22#define __SYSTEM_TARGET_H__ 23#define __SYSTEM_TARGET_H__
23 24
24#define disable_irq() 25#include "kernel-unix.h"
25#define enable_irq()
26#define disable_irq_save() 0
27#define restore_irq(level) (void)level
28 26
29static inline void commit_dcache(void) {} 27static inline void commit_dcache(void) {}
30static inline void commit_discard_dcache(void) {} 28static inline void commit_discard_dcache(void) {}
31static inline void commit_discard_idcache(void) {} 29static inline void commit_discard_idcache(void) {}
32 30
33void power_off(void);
34void wait_for_interrupt(void);
35void interrupt(void);
36
37 /* don't pull in jni.h for every user of this file, it should be only needed 31 /* don't pull in jni.h for every user of this file, it should be only needed
38 * within the target tree (if at all) 32 * within the target tree (if at all)
39 * define this before #including system.h or system-target.h */ 33 * define this before #including system.h or system-target.h */
@@ -47,4 +41,3 @@ extern JNIEnv* getJavaEnvironment(void);
47#endif /* __SYSTEM_TARGET_H__ */ 41#endif /* __SYSTEM_TARGET_H__ */
48 42
49#define NEED_GENERIC_BYTESWAPS 43#define NEED_GENERIC_BYTESWAPS
50