-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add support for IAR tools and C startup code (irq vector) - Fix standard CLINT vectored mode (jmp instr) - Fix various trap & emulation bugs (E21 CLIC) - Add vector table mtvec.s (CLINT/CLIC) - Minor changes to zones' code to comply with standard CLINT vector - hexfive-conf @29253d, hexfive-kern @3d13f6
- Loading branch information
Showing
26 changed files
with
516 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* Copyright(C) 2020 Hex Five Security, Inc. - All Rights Reserved */ | ||
|
||
.align 2 | ||
|
||
_mtvec: | ||
|
||
irq0: .word trp_isr | ||
irq1: .word 1f | ||
irq2: .word 1f | ||
irq3: .word msi_isr | ||
irq4: .word 1f | ||
irq5: .word 1f | ||
irq6: .word 1f | ||
irq7: .word tmr_isr | ||
irq8: .word 1f | ||
irq9: .word 1f | ||
irq10: .word 1f | ||
irq11: .word 1f | ||
irq12: .word 1f | ||
irq13: .word 1f | ||
irq14: .word 1f | ||
irq15: .word 1f | ||
irq16: .word 1f | ||
irq17: .word 1f | ||
irq18: .word 1f | ||
irq19: .word dma_isr | ||
irq20: .word btn0_isr | ||
irq21: .word btn1_isr | ||
irq22: .word btn2_isr | ||
irq23: .word 1f | ||
irq24: .word 1f | ||
irq25: .word 1f | ||
irq26: .word 1f | ||
irq27: .word 1f | ||
irq28: .word 1f | ||
irq29: .word 1f | ||
irq30: .word 1f | ||
irq31: .word 1f | ||
|
||
.macro FILL from, to | ||
.word 1f | ||
.if \to-\from | ||
FILL "(\from+1)",\to | ||
.endif | ||
.endm | ||
|
||
FILL 32, 99 | ||
FILL 100, 158 | ||
|
||
irq159: .word uart_isr | ||
|
||
.weak trp_isr, msi_isr, tmr_isr, dma_isr, uart_isr, btn0_isr, btn1_isr, btn2_isr | ||
|
||
trp_isr: | ||
msi_isr: | ||
tmr_isr: | ||
dma_isr: | ||
uart_isr: | ||
btn0_isr: | ||
btn1_isr: | ||
btn2_isr: | ||
1: j . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* Copyright(C) 2020 Hex Five Security, Inc. - All Rights Reserved */ | ||
|
||
.align 2 | ||
|
||
_mtvec: | ||
|
||
.option push | ||
.option norvc | ||
|
||
irq0: j trp_isr | ||
irq1: j . | ||
irq2: j . | ||
irq3: j msi_isr | ||
irq4: j . | ||
irq5: j . | ||
irq6: j . | ||
irq7: j tmr_isr | ||
irq8: j . | ||
irq9: j . | ||
irq10: j . | ||
irq11: j uart_isr | ||
irq12: j . | ||
irq13: j . | ||
irq14: j . | ||
irq15: j . | ||
irq16: j . | ||
irq17: j . | ||
irq18: j . | ||
irq19: j dma_isr | ||
irq20: j btn0_isr | ||
irq21: j btn1_isr | ||
irq22: j btn2_isr | ||
irq23: j . | ||
irq24: j . | ||
irq25: j . | ||
irq26: j . | ||
irq27: j . | ||
irq28: j . | ||
irq29: j . | ||
irq30: j . | ||
irq31: j . | ||
|
||
.option pop | ||
|
||
.weak trp_isr, msi_isr, tmr_isr, dma_isr, uart_isr, btn0_isr, btn1_isr, btn2_isr | ||
|
||
trp_isr: | ||
msi_isr: | ||
tmr_isr: | ||
dma_isr: | ||
uart_isr: | ||
btn0_isr: | ||
btn1_isr: | ||
btn2_isr: | ||
j . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* Copyright(C) 2020 Hex Five Security, Inc. - All Rights Reserved */ | ||
|
||
.align 2 | ||
|
||
_mtvec: | ||
|
||
.option push | ||
.option norvc | ||
|
||
irq0: j trp_isr | ||
irq1: j . | ||
irq2: j . | ||
irq3: j msi_isr | ||
irq4: j . | ||
irq5: j . | ||
irq6: j . | ||
irq7: j tmr_isr | ||
irq8: j . | ||
irq9: j . | ||
irq10: j . | ||
irq11: j uart_isr | ||
irq12: j . | ||
irq13: j . | ||
irq14: j . | ||
irq15: j . | ||
irq16: j . | ||
irq17: j . | ||
irq18: j . | ||
irq19: j dma_isr | ||
irq20: j . | ||
irq21: j . | ||
irq22: j . | ||
irq23: j . | ||
irq24: j . | ||
irq25: j . | ||
irq26: j . | ||
irq27: j . | ||
irq28: j . | ||
irq29: j . | ||
irq30: j . | ||
irq31: j . | ||
|
||
.option pop | ||
|
||
.weak trp_isr, msi_isr, tmr_isr, dma_isr, uart_isr, btn0_isr, btn1_isr, btn2_isr | ||
|
||
trp_isr: | ||
msi_isr: | ||
tmr_isr: | ||
dma_isr: | ||
uart_isr: | ||
btn0_isr: | ||
btn1_isr: | ||
btn2_isr: | ||
j . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.