Skip to content

Commit

Permalink
SoC: now n100 external interrupt number has changed from 30 to 16
Browse files Browse the repository at this point in the history
Signed-off-by: dongyongtao <[email protected]>
  • Loading branch information
dongyongtao committed Oct 29, 2024
1 parent 4357773 commit 24358e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
8 changes: 5 additions & 3 deletions SoC/evalsoc/Board/nuclei_fpga_eval/Source/GCC/evalsoc.memory
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ SRAM_MEMORY_ROM_SIZE = 0x10000;

/* MTVT and MTVEC Information */
/*
* MTVT_BASE and MTVEC_BASE must be set with an value
* MTVT_BASE and MTVEC_BASE must be set with an value(uncomment it) if it is present
* If it is not present, you need to remove section in the linker script
* MTVT_BASE: isr_vector section
* MTVEC_BASE: exception section
*
* MTVT_BASE = 0xA0000000;
* MTVEC_BASE = 0xA000004c;
*/
MTVT_BASE = 0xA0000000;
MTVEC_BASE = 0xA0000084;

2 changes: 1 addition & 1 deletion SoC/evalsoc/Common/Include/cpufeature.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ extern "C" {
#define CFG_TMR_PRIVATE
#define CFG_HAS_IRQC
// External Interrupt Number
#define CFG_IRQ_NUM 30
#define CFG_IRQ_NUM 16

// EXCP is the exception module, if not defined, it means not present
// If not present, you need to remove .exception section in linker script
Expand Down
14 changes: 0 additions & 14 deletions SoC/evalsoc/Common/Include/evalsoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,6 @@ typedef enum IRQn {
SOC_INT15_IRQn = 15, /*!< Device Interrupt */
SOC_INT16_IRQn = 16, /*!< Device Interrupt */
SOC_INT17_IRQn = 17, /*!< Device Interrupt */
SOC_INT18_IRQn = 18, /*!< Device Interrupt */
SOC_INT19_IRQn = 19, /*!< Device Interrupt */
SOC_INT20_IRQn = 20, /*!< Device Interrupt */
SOC_INT21_IRQn = 21, /*!< Device Interrupt */
SOC_INT22_IRQn = 22, /*!< Device Interrupt */
SOC_INT23_IRQn = 23, /*!< Device Interrupt */
SOC_INT24_IRQn = 24, /*!< Device Interrupt */
SOC_INT25_IRQn = 25, /*!< Device Interrupt */
SOC_INT26_IRQn = 26, /*!< Device Interrupt */
SOC_INT27_IRQn = 27, /*!< Device Interrupt */
SOC_INT28_IRQn = 28, /*!< Device Interrupt */
SOC_INT29_IRQn = 29, /*!< Device Interrupt */
SOC_INT30_IRQn = 30, /*!< Device Interrupt */
SOC_INT31_IRQn = 31, /*!< Device Interrupt */
#ifdef CFG_IRQ_NUM
SOC_INT_MAX = 2 + CFG_IRQ_NUM, /*!< Two fixed cpu interrupt and max 30 external interrupt */
#else
Expand Down
2 changes: 1 addition & 1 deletion SoC/evalsoc/Common/Source/GCC/startup_evalsoc.S
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ _start:
/* Set correct sp for current cpu */
la sp, _sp

/* mtvec and mtvt are readonly CSRs for N100, no need to initialize it */
/* mtvec and mtvt are initialized in _premain_init if they are writable */

/* ===== Startup Stage 2 ===== */

Expand Down

0 comments on commit 24358e6

Please sign in to comment.