Changeset 7e87436 in mainline for kernel/arch/arm32/include/security_ext.h
- Timestamp:
- 2013-01-11T00:34:32Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- eb1d9c1
- Parents:
- b9f72b97
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/arm32/include/security_ext.h
rb9f72b97 r7e87436 49 49 } 50 50 51 static inline bool sec_ext_is_monitor_mode() 52 { 53 return (current_status_reg_read() & MODE_MASK) == MONITOR_MODE; 54 } 55 51 56 static inline bool sec_ext_is_secure() 52 57 { 53 58 return sec_ext_is_implemented() 54 && ((current_status_reg_read() & MODE_MASK) == MONITOR_MODE 55 || !(SCR_read() & SCR_NS_FLAG)); 59 && (sec_ext_is_monitor_mode() || !(SCR_read() & SCR_NS_FLAG)); 56 60 } 61 62 typedef enum { 63 SECURITY_CALL_ENABLE_CP10_11 = 0xaaaa 64 } sec_ext_call_t; 65 66 static inline void sec_ext_call(sec_ext_call_t call) 67 { 68 asm volatile ("mov r0, %0\nsmc #0" ::"r"(call)); 69 } 70 71 int sec_ext_handle_call(sec_ext_call_t call); 57 72 58 73 #endif
Note:
See TracChangeset
for help on using the changeset viewer.