Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153250214
D25867.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
933 B
Referenced Files
None
Subscribers
None
D25867.diff
View Options
Index: head/sys/riscv/include/pcpu.h
===================================================================
--- head/sys/riscv/include/pcpu.h
+++ head/sys/riscv/include/pcpu.h
@@ -48,7 +48,7 @@
struct pmap *pc_curpmap; /* Currently active pmap */ \
uint32_t pc_pending_ipis; /* IPIs pending to this CPU */ \
uint32_t pc_hart; /* Hart ID */ \
- char __pad[49]
+ char __pad[56] /* Pad to factor of PAGE_SIZE */
#ifdef _KERNEL
Index: head/sys/riscv/include/pcpu_aux.h
===================================================================
--- head/sys/riscv/include/pcpu_aux.h
+++ head/sys/riscv/include/pcpu_aux.h
@@ -46,6 +46,9 @@
* be a multiple of the size of struct pcpu.
*/
_Static_assert(PAGE_SIZE % sizeof(struct pcpu) == 0, "fix pcpu size");
+_Static_assert(offsetof(struct pcpu, __pad) +
+ sizeof(((struct pcpu *)0)->__pad) == sizeof(struct pcpu),
+ "fix pcpu padding");
extern struct pcpu __pcpu[];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 21, 1:50 AM (14 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31878474
Default Alt Text
D25867.diff (933 B)
Attached To
Mode
D25867: Correct padding length for RISC-V PCPU data.
Attached
Detach File
Event Timeline
Log In to Comment