Fix plic register.
parent
ad401d5b09
commit
aad8284ac9
|
@ -74,7 +74,6 @@ extern "C" {
|
|||
#define PLIC_NUM_CORES (2)
|
||||
/* clang-format on */
|
||||
|
||||
|
||||
/**
|
||||
* @brief Interrupt Source Priorities
|
||||
*
|
||||
|
@ -137,8 +136,8 @@ typedef struct _plic_target_enables
|
|||
/* 0x0C002000-0x0C1F1F80: target 0-15871 enables */
|
||||
struct
|
||||
{
|
||||
uint32_t enable[32];/* Offset 0x00-0x7C: Bit 0 is zero, Bits 1-1023 is bits*/
|
||||
} target[15872];
|
||||
uint32_t enable[32 * 2]; /* Offset 0x00-0x7C: Bit 0 is zero, Bits 1-1023 is bits*/
|
||||
} target[15872 / 2];
|
||||
|
||||
/* 0x0C1F2000-0x0C1FFFFC: Reserved, size 0xE000 */
|
||||
uint8_t resv[0xE000];
|
||||
|
@ -176,11 +175,12 @@ typedef struct _plic_target_enables
|
|||
typedef struct _plic_target
|
||||
{
|
||||
/* 0x0C200000-0x0FFFF004: target 0-15871 */
|
||||
struct {
|
||||
uint32_t priority_threshold;/* Offset 0x000 */
|
||||
uint32_t claim_complete; /* Offset 0x004 */
|
||||
uint8_t resv[0xFF8]; /* Offset 0x008, Size 0xFF8 */
|
||||
} target[15872];
|
||||
struct
|
||||
{
|
||||
uint32_t priority_threshold; /* Offset 0x000 */
|
||||
uint32_t claim_complete; /* Offset 0x004 */
|
||||
uint8_t resv[0x1FF8]; /* Offset 0x008, Size 0xFF8 */
|
||||
} target[15872 / 2];
|
||||
} __attribute__((packed, aligned(4))) plic_target_t;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue