File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
targets/TARGET_NUVOTON/TARGET_M2351/device Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,22 @@ void CLK_DisableModuleClock_S(uint32_t u32ModuleIndex)
181
181
CLK_DisableModuleClock (u32ModuleIndex );
182
182
}
183
183
184
+ __NONSECURE_ENTRY
185
+ void SYS_LockReg_S (void )
186
+ {
187
+ /* Allow non-secure domain to lock/unlock locked registers without check.
188
+ * Guard access to locked registers is done through other related secure functions. */
189
+ SYS_LockReg ();
190
+ }
191
+
192
+ __NONSECURE_ENTRY
193
+ void SYS_UnlockReg_S (void )
194
+ {
195
+ /* Allow non-secure domain to lock/unlock locked registers without check.
196
+ * Guard access to locked registers is done through other related secure functions. */
197
+ SYS_UnlockReg ();
198
+ }
199
+
184
200
static bool check_mod_ns (int modclass , uint32_t modidx )
185
201
{
186
202
const nu_modidx_ns_t * modidx_ns = modidx_ns_tab ;
Original file line number Diff line number Diff line change @@ -51,6 +51,20 @@ void CLK_EnableModuleClock_S(uint32_t u32ModuleIndex);
51
51
*/
52
52
void CLK_DisableModuleClock_S (uint32_t u32ModuleIndex );
53
53
54
+ /* Secure SYS_LockReg
55
+ *
56
+ * Guard access to secure module from non-secure domain before SYS_LockReg.
57
+ * Its synopsis is the same as SYS_LockReg.
58
+ */
59
+ void SYS_LockReg_S (void );
60
+
61
+ /* Secure SYS_UnlockReg
62
+ *
63
+ * Guard access to secure module from non-secure domain before SYS_UnlockReg.
64
+ * Its synopsis is the same as SYS_UnlockReg.
65
+ */
66
+ void SYS_UnlockReg_S (void );
67
+
54
68
#ifdef __cplusplus
55
69
}
56
70
#endif
You can’t perform that action at this time.
0 commit comments