structstack_frame* context = &exception_info->stack_frame;if(rt_exception_hook != RT_NULL)// ...
RT_OBJECT_HOOK_CALL(rt_interrupt_enter_hook,());//调用钩子函数 rt_hw_interrupt_enable(level);...
10 result = rt_exception_hook(exception_info); 11 if (result == RT_EOK) 12 return; 13 } 14 15 rt_kprintf("psr: 0x%08x\n", context->exception_stack_frame.psr); 16 17 rt_kprintf("r00: 0x%08x\n", context->exception_stack_frame.r0); 18 rt_kprintf("r01: 0x%08x\n", context->...
rt_exception_hook0x2000024cData4cpuport.o(.data) .data0x20000250Section4shell.o(.data) .data0x20000254Section16symbol.o(.data) .data0x20000264Section8idlehook_sample.o(.data) tid0x20000264Data4idlehook_sample.o(.data) hook_times0x20000268Data4idlehook_sample.o(.data) .data0x2000026cSect...
6if(rt_exception_hook != RT_NULL) 7{ 8rt_err_tresult; 9 10result = rt_exception_hook(exception_info); 11if(result == RT_EOK) 12return; 13} 14 15rt_kprintf('psr: 0x%08x\n', context->exception_stack_frame.psr); 16 17rt_kprintf('r00: 0x%08x\n', context->exception_stack_fram...
Adjust the exception handling code structure to support backtrace functionality Remove the mutex RT_IPC_FLAG_FIFO function Remove switch_to_sethook function Add idle reclaimed resources Change defined(__CC_ARM) || defined(__CLANG_ARM) to ifdef __ARMCC_VERSION Fix comment error for rt_mutex_det...
调用rt_thread_inited_hook()钩子函数 static rt_err_t _rt_thread_init(struct rt_thread *thread, const char *name, void (*entry)(void *parameter), void *parameter, void *stack_start, rt_uint32_t stack_size, rt_uint8_t priority, ...
We define an assertion hook function similar to the following, and then set it to the system via the rt_assert_set_hook(rtt_user_assert_hook); function. static void rtt_user_assert_hook(const char* ex, const char* func, rt_size_t line) { rt_enter_critical(); ulog_output(LOG_LVL_...
STM32的移植到这边来:-)RT-Thread for STM32的移植源代码 点击此处下载ourdev_421024.zip(文件大小:...
rt_assert_set_hook(__rt_assert_handler); //启动RT-Thread Smart内核 entry();} 异常处理 异常处理流程图 异常处理上半部分 登录后复制/*libcpu isc-v -headc906interrupt_gcc.S*/#define __ASSEMBLY__#include "cpuport.h"#include "encoding.h"#include "stackframe.h" .section .text.entry .alig...