From 48d1d6ebaffef5ce45f47bca9aeab0b5dd0d918c Mon Sep 17 00:00:00 2001 From: 6eanut Date: Mon, 28 Apr 2025 16:35:26 +0800 Subject: [PATCH] VIRT_PLIC_PRIORITY_BASE 0x04->0x00 --- code/os/06-interrupts/platform.h | 2 +- code/os/07-hwtimer/platform.h | 2 +- code/os/08-preemptive/platform.h | 2 +- code/os/09-lock/platform.h | 2 +- code/os/10-swtimer/platform.h | 2 +- code/os/11-syscall/platform.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/code/os/06-interrupts/platform.h b/code/os/06-interrupts/platform.h index e706ae7..c853063 100644 --- a/code/os/06-interrupts/platform.h +++ b/code/os/06-interrupts/platform.h @@ -46,7 +46,7 @@ * #define VIRT_PLIC_HART_CONFIG "MS" * #define VIRT_PLIC_NUM_SOURCES 127 * #define VIRT_PLIC_NUM_PRIORITIES 7 - * #define VIRT_PLIC_PRIORITY_BASE 0x04 + * #define VIRT_PLIC_PRIORITY_BASE 0x00 * #define VIRT_PLIC_PENDING_BASE 0x1000 * #define VIRT_PLIC_ENABLE_BASE 0x2000 * #define VIRT_PLIC_ENABLE_STRIDE 0x80 diff --git a/code/os/07-hwtimer/platform.h b/code/os/07-hwtimer/platform.h index 2694308..def36d6 100644 --- a/code/os/07-hwtimer/platform.h +++ b/code/os/07-hwtimer/platform.h @@ -46,7 +46,7 @@ * #define VIRT_PLIC_HART_CONFIG "MS" * #define VIRT_PLIC_NUM_SOURCES 127 * #define VIRT_PLIC_NUM_PRIORITIES 7 - * #define VIRT_PLIC_PRIORITY_BASE 0x04 + * #define VIRT_PLIC_PRIORITY_BASE 0x00 * #define VIRT_PLIC_PENDING_BASE 0x1000 * #define VIRT_PLIC_ENABLE_BASE 0x2000 * #define VIRT_PLIC_ENABLE_STRIDE 0x80 diff --git a/code/os/08-preemptive/platform.h b/code/os/08-preemptive/platform.h index 2694308..def36d6 100644 --- a/code/os/08-preemptive/platform.h +++ b/code/os/08-preemptive/platform.h @@ -46,7 +46,7 @@ * #define VIRT_PLIC_HART_CONFIG "MS" * #define VIRT_PLIC_NUM_SOURCES 127 * #define VIRT_PLIC_NUM_PRIORITIES 7 - * #define VIRT_PLIC_PRIORITY_BASE 0x04 + * #define VIRT_PLIC_PRIORITY_BASE 0x00 * #define VIRT_PLIC_PENDING_BASE 0x1000 * #define VIRT_PLIC_ENABLE_BASE 0x2000 * #define VIRT_PLIC_ENABLE_STRIDE 0x80 diff --git a/code/os/09-lock/platform.h b/code/os/09-lock/platform.h index 2694308..def36d6 100644 --- a/code/os/09-lock/platform.h +++ b/code/os/09-lock/platform.h @@ -46,7 +46,7 @@ * #define VIRT_PLIC_HART_CONFIG "MS" * #define VIRT_PLIC_NUM_SOURCES 127 * #define VIRT_PLIC_NUM_PRIORITIES 7 - * #define VIRT_PLIC_PRIORITY_BASE 0x04 + * #define VIRT_PLIC_PRIORITY_BASE 0x00 * #define VIRT_PLIC_PENDING_BASE 0x1000 * #define VIRT_PLIC_ENABLE_BASE 0x2000 * #define VIRT_PLIC_ENABLE_STRIDE 0x80 diff --git a/code/os/10-swtimer/platform.h b/code/os/10-swtimer/platform.h index 2694308..def36d6 100644 --- a/code/os/10-swtimer/platform.h +++ b/code/os/10-swtimer/platform.h @@ -46,7 +46,7 @@ * #define VIRT_PLIC_HART_CONFIG "MS" * #define VIRT_PLIC_NUM_SOURCES 127 * #define VIRT_PLIC_NUM_PRIORITIES 7 - * #define VIRT_PLIC_PRIORITY_BASE 0x04 + * #define VIRT_PLIC_PRIORITY_BASE 0x00 * #define VIRT_PLIC_PENDING_BASE 0x1000 * #define VIRT_PLIC_ENABLE_BASE 0x2000 * #define VIRT_PLIC_ENABLE_STRIDE 0x80 diff --git a/code/os/11-syscall/platform.h b/code/os/11-syscall/platform.h index 2694308..def36d6 100644 --- a/code/os/11-syscall/platform.h +++ b/code/os/11-syscall/platform.h @@ -46,7 +46,7 @@ * #define VIRT_PLIC_HART_CONFIG "MS" * #define VIRT_PLIC_NUM_SOURCES 127 * #define VIRT_PLIC_NUM_PRIORITIES 7 - * #define VIRT_PLIC_PRIORITY_BASE 0x04 + * #define VIRT_PLIC_PRIORITY_BASE 0x00 * #define VIRT_PLIC_PENDING_BASE 0x1000 * #define VIRT_PLIC_ENABLE_BASE 0x2000 * #define VIRT_PLIC_ENABLE_STRIDE 0x80