@@ -156,7 +156,6 @@ void cache_init(void)
156
156
RT_SECTION (".irq.cache" )
157
157
void os_spiflash_lock (void )
158
158
{
159
- // if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
160
159
if ((rt_thread_self () != RT_NULL ) && (rt_interrupt_nest == 0 )) {
161
160
rt_mutex_take (& mutex_spiflash , RT_WAITING_FOREVER );
162
161
}
@@ -165,7 +164,6 @@ void os_spiflash_lock(void)
165
164
RT_SECTION (".irq.cache" )
166
165
void os_spiflash_unlock (void )
167
166
{
168
- // if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
169
167
if ((rt_thread_self () != RT_NULL ) && (rt_interrupt_nest == 0 )) {
170
168
rt_mutex_release (& mutex_spiflash );
171
169
}
@@ -174,7 +172,6 @@ void os_spiflash_unlock(void)
174
172
RT_SECTION (".irq.cache" )
175
173
void os_cache_lock (void )
176
174
{
177
- // if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
178
175
if ((rt_thread_self () != RT_NULL ) && (rt_interrupt_nest == 0 )) {
179
176
rt_mutex_take (& mutex_cache , RT_WAITING_FOREVER );
180
177
}
@@ -183,7 +180,6 @@ void os_cache_lock(void)
183
180
RT_SECTION (".irq.cache" )
184
181
void os_cache_unlock (void )
185
182
{
186
- // if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
187
183
if ((rt_thread_self () != RT_NULL ) && (rt_interrupt_nest == 0 )) {
188
184
rt_mutex_release (& mutex_cache );
189
185
}
@@ -200,6 +196,8 @@ void rt_hw_console_output(const char *str)
200
196
/**
201
197
* @brief print exception error
202
198
* @note Every message needed to print, must put in .comm exction.
199
+ * @note (IRQ in Flash: %x %x - %x %x\n, -, rt_interrupt_nest, PC, miss_addr)
200
+ * miss_addr: The address in map file minus 0x10000000
203
201
*/
204
202
RT_SECTION (".irq.err" )
205
203
void exception_isr (void )
0 commit comments