Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107522937
D47133.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47133.diff
View Options
diff --git a/sys/riscv/riscv/plic.c b/sys/riscv/riscv/plic.c
--- a/sys/riscv/riscv/plic.c
+++ b/sys/riscv/riscv/plic.c
@@ -63,13 +63,13 @@
#define PLIC_CONTEXT_THRESHOLD 0x0U
#define PLIC_CONTEXT_CLAIM 0x4U
-#define PLIC_PRIORITY(n) (PLIC_PRIORITY_BASE + (n) * sizeof(uint32_t))
-#define PLIC_ENABLE(sc, n, h) \
- (sc->contexts[h].enable_offset + ((n) / 32) * sizeof(uint32_t))
-#define PLIC_THRESHOLD(sc, h) \
- (sc->contexts[h].context_offset + PLIC_CONTEXT_THRESHOLD)
-#define PLIC_CLAIM(sc, h) \
- (sc->contexts[h].context_offset + PLIC_CONTEXT_CLAIM)
+#define PLIC_PRIORITY(_irq) (PLIC_PRIORITY_BASE + (_irq) * sizeof(uint32_t))
+#define PLIC_ENABLE(_sc, _irq, _cpu) \
+ (_sc->contexts[_cpu].enable_offset + ((_irq) / 32) * sizeof(uint32_t))
+#define PLIC_THRESHOLD(_sc, _cpu) \
+ (_sc->contexts[_cpu].context_offset + PLIC_CONTEXT_THRESHOLD)
+#define PLIC_CLAIM(_sc, _cpu) \
+ (_sc->contexts[_cpu].context_offset + PLIC_CONTEXT_CLAIM)
static pic_disable_intr_t plic_disable_intr;
static pic_enable_intr_t plic_enable_intr;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 16, 9:59 AM (19 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14208658
Default Alt Text
D47133.diff (1 KB)
Attached To
Mode
D47133: plic: tweak macro argument names
Attached
Detach File
Event Timeline
Log In to Comment