@@ -156,7 +156,6 @@ void cache_init(void)
156156RT_SECTION (".irq.cache" )
157157void os_spiflash_lock (void )
158158{
159- // if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
160159 if ((rt_thread_self () != RT_NULL ) && (rt_interrupt_nest == 0 )) {
161160 rt_mutex_take (& mutex_spiflash , RT_WAITING_FOREVER );
162161 }
@@ -165,7 +164,6 @@ void os_spiflash_lock(void)
165164RT_SECTION (".irq.cache" )
166165void os_spiflash_unlock (void )
167166{
168- // if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
169167 if ((rt_thread_self () != RT_NULL ) && (rt_interrupt_nest == 0 )) {
170168 rt_mutex_release (& mutex_spiflash );
171169 }
@@ -174,7 +172,6 @@ void os_spiflash_unlock(void)
174172RT_SECTION (".irq.cache" )
175173void os_cache_lock (void )
176174{
177- // if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
178175 if ((rt_thread_self () != RT_NULL ) && (rt_interrupt_nest == 0 )) {
179176 rt_mutex_take (& mutex_cache , RT_WAITING_FOREVER );
180177 }
@@ -183,7 +180,6 @@ void os_cache_lock(void)
183180RT_SECTION (".irq.cache" )
184181void os_cache_unlock (void )
185182{
186- // if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
187183 if ((rt_thread_self () != RT_NULL ) && (rt_interrupt_nest == 0 )) {
188184 rt_mutex_release (& mutex_cache );
189185 }
@@ -200,6 +196,8 @@ void rt_hw_console_output(const char *str)
200196/**
201197 * @brief print exception error
202198 * @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
203201 */
204202RT_SECTION (".irq.err" )
205203void exception_isr (void )
0 commit comments