Page MenuHomeFreeBSD

RISC-V: Ensure kernel stack is aligned
ClosedPublic

Authored by jrtc27 on Dec 29 2019, 10:00 PM.
Tags
None
Referenced Files
F152494131: D22961.id66137.diff
Wed, Apr 15, 7:51 AM
Unknown Object (File)
Wed, Apr 8, 5:28 PM
Unknown Object (File)
Wed, Apr 8, 4:07 PM
Unknown Object (File)
Wed, Apr 8, 9:56 AM
Unknown Object (File)
Sat, Mar 21, 7:03 AM
Unknown Object (File)
Thu, Mar 19, 9:29 AM
Unknown Object (File)
Wed, Mar 18, 10:05 PM
Unknown Object (File)
Mar 7 2026, 8:42 AM
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