Skip to content

Commit 8b25a5e

Browse files
author
Wayne Ren
committed
clean up source code
1 parent 5a1de26 commit 8b25a5e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

inc/arc/arc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,15 @@
192192
#define AUX_STATUS_BIT_U (7) /*!< user mode */
193193
#define AUX_STATUS_BIT_L (12) /*!< zero-overhead loop enable */
194194
#define AUX_STATUS_BIT_IE (31) /*!< interrupt enable */
195+
#define AUX_STATUS_BIT_HALT (0) /*!< halt bit */
195196

196197
/* masks correspond to STATUS32 bit-field */
197198
#define AUX_STATUS_MASK_AE (1<<AUX_STATUS_BIT_AE) /*!< mask of AUX_STATUS_BIT_AE */
198199
#define AUX_STATUS_MASK_DE (1<<AUX_STATUS_BIT_DE) /*!< mask of AUX_STATUS_BIT_DE */
199200
#define AUX_STATUS_MASK_U (1<<AUX_STATUS_BIT_U) /*!< mask of AUX_STATUS_BIT_U */
200201
#define AUX_STATUS_MASK_L (1<<AUX_STATUS_BIT_L) /*!< mask of AUX_STATUS_BIT_L */
201202
#define AUX_STATUS_MASK_IE (1<<AUX_STATUS_BIT_IE) /*!< mask of AUX_STATUS_BIT_IE */
203+
#define AUX_STATUS_MASK_HALT (1<<AUX_STATUS_BIT_HALT) /*!< mask of AUX_STATUS_BIT_HALT */
202204
/** @} */
203205

204206
/**

library/secureshield/core/src/v1/secureshield_entry.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ _int_handler_1:
178178
* come back to container sp, secureshield stack will not be used
179179
*/
180180
POP sp
181-
kflag 0x20 /* take interrupt as exception, return as an exception */
181+
kflag AUX_STATUS_MASK_AE /* take interrupt as exception, return as an exception */
182182

183183
cmp r0, 0
184184
beq _ret_int_unprivileged_no_cx

0 commit comments

Comments
 (0)