Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CMSIS): Vector table address now properly set #819

Merged
merged 3 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ __isr_vector:
Reset_Handler:

/* set 0 in mtvec (base for IVT) */
csrrw x0, mtvec, x0

la t0, (__isr_vector + 1)
csrrw x0, mtvec, t0

/* Initialize Stack Pointer */
la sp, __StackTop

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ __isr_vector:
.globl Reset_Handler
.type Reset_Handler, %function
Reset_Handler:

/* set 0 in mtvec (base for IVT) */
csrrw x0, mtvec, x0
/* Load interrupt vector table */
la t0, (__isr_vector + 1)
csrrw x0, mtvec, t0

/* Initialize Stack Pointer */
la sp, __StackTop
Expand Down