ОС работает, пользовательские прерывания тоже работают. Осталось придумать, как в trap_entry идти в нужную функцию, если библиотека не подключена
This commit is contained in:
1 parent
902d7b0932
commit
42e9becdb9
5 files changed
+9
-8
No files matched your search
@@ -123,6 +123,7 @@ SECTIONS {
|
||||
PROVIDE(__STACK_START__ = .);
|
||||
. += STACK_SIZE;
|
||||
PROVIDE(__C_STACK_TOP__ = .);
|
||||
PROVIDE(__freertos_irq_stack_top = .);
|
||||
PROVIDE(__STACK_END__ = .);
|
||||
} >ram
|
||||
|
||||
|
||||
@@ -112,8 +112,9 @@ SystemInit:
|
||||
.section .trap_text, "ax"
|
||||
// .org should be consistent with
|
||||
// default mtvec value (set in scr1_arch_description.svh)
|
||||
//.org 0xC0 //j raw_trap_handler
|
||||
//.org 0xC0
|
||||
trap_entry:
|
||||
//j raw_trap_handler
|
||||
j freertos_risc_v_trap_handler
|
||||
|
||||
raw_trap_handler:
|
||||
|
||||
Reference in new issue
Block a user