Page MenuHomeFreeBSD

RISC-V: Ensure kernel stack is aligned
ClosedPublic

Authored by jrtc27 on Dec 29 2019, 10:00 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 10, 4:21 PM
Unknown Object (File)
Sat, Jan 10, 12:56 PM
Unknown Object (File)
Mon, Dec 29, 6:48 AM
Unknown Object (File)
Dec 22 2025, 10:44 AM
Unknown Object (File)
Dec 10 2025, 7:42 PM
Unknown Object (File)
Dec 7 2025, 10:42 PM
Unknown Object (File)
Nov 20 2025, 8:27 PM
Unknown Object (File)
Nov 20 2025, 8:25 PM
Subscribers

Details

Summary

Currently, PCB_SIZE is an odd number of 8 bytes, as is 40, the size of
riscv_bootparams, so we happen to have an aligned kernel stack. Instead
we should round the allocation up as required. We can also fold the two
together to avoid unnecessarily padding each.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28370
Build 26457: arc lint + arc unit