/*
* Copyright ( c ) 2013 , Google Inc . All rights reserved
*
* Permission is hereby granted , free of charge , to any person obtaining
* a copy of this software and associated documentation files
* ( the " Software " ) , to deal in the Software without restriction ,
* including without limitation the rights to use , copy , modify , merge ,
* publish , distribute , sublicense , and / or sell copies of the Software ,
* and to permit persons to whom the Software is furnished to do so ,
* subject to the following conditions :
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ,
* EXPRESS OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY , FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT .
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM , DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION OF CONTRACT ,
* TORT OR OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
*/
#ifndef __LIB_SM_MONITOR_H
#define MODE_USR 0 x10
#define MODE_FIQ 0 x11
#define MODE_IRQ 0 x12
#define MODE_SVC 0 x13
#define MODE_MON 0 x16
#define MODE_ABT 0 x17
#define MODE_UND 0 x1b
#define MODE_SYS 0 x1f
#define MODE_SVC_IRQ_DISABLED 0 x93
#define MODE_SVC_IRQ_FIQ_DISABLED 0 xd3
/* SCR values for secure and non-secure modes */
#define SM_SCR_NONSECURE 0 x5
#define SM_SCR_SECURE 0 x0
/* clang-format off */
/* sets SCR.NS bit to 1 (assumes monitor mode) */
.macro SWITCH_SCR_TO_NONSECURE, tmp
mov \tmp, #SM_SCR_NONSECURE
mcr p15, 0 , \tmp, c1, c1, 0
isb
.endm
/* sets SCR.NS bit to 0 (assumes monitor mode) */
.macro SWITCH_SCR_TO_SECURE, tmp
mov \tmp, #SM_SCR_SECURE
mcr p15, 0 , \tmp, c1, c1, 0
isb
.endm
/* clang-format on */
#endif /* __LIB_SM_MONITOR_H */
Messung V0.5 in Prozent C=93 H=89 G=90
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-27)
¤
*© Formatika GbR, Deutschland