File tree 3 files changed +4
-7
lines changed
3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ uvisor_config:
115
115
.long __uvisor_debug_driver
116
116
117
117
/* Stack limit for public box MSPLIM_NS, accessed by public_box_stack_limit */
118
- .long __uvisor_public_box_stack_limit
118
+ .long __StackLimit
119
119
120
120
/* uVisor mode of operation
121
121
* Modes available: UVISOR_ENABLED, UVISOR_DISABLED, UVISOR_PERMISSIVE. */
@@ -137,9 +137,6 @@ __uvisor_debug_driver:
137
137
.long 0
138
138
.long 0
139
139
140
- __uvisor_public_box_stack_limit:
141
- .long __StackLimit
142
-
143
140
/* __uvisor_ps is written inside uvisor_init. It must not be
144
141
* overwritten by libc init and therefore is placed in .uninitialized. */
145
142
.section .uninitialized
Original file line number Diff line number Diff line change @@ -122,8 +122,8 @@ typedef struct {
122
122
123
123
TUvisorDebugDriver const * const debug_driver ;
124
124
125
- /* Stack limit for public box MSPNS_LIM, accessed by __uvisor_public_box_stack_limit */
126
- uint32_t * public_box_stack_limit ;
125
+ /* Stack limit for public box MSPNS_LIM*/
126
+ uint32_t public_box_stack_limit ;
127
127
} UVISOR_PACKED UvisorConfig ;
128
128
129
129
extern UvisorConfig const __uvisor_config ;
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ void main_init(void)
162
162
__TZ_set_MSP_NS (original_sp );
163
163
164
164
/* NS P limit, for the RTOS and the uVisor-ns. */
165
- __TZ_set_MSPLIM_NS (* ( __uvisor_config .public_box_stack_limit ) );
165
+ __TZ_set_MSPLIM_NS (__uvisor_config .public_box_stack_limit );
166
166
167
167
/* S NP stack pointer, for the SDSs and the transition gateways. */
168
168
__set_PSP ((uint32_t ) & __uvisor_stack_top_np__ );
You can’t perform that action at this time.
0 commit comments