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, Oct 18, 2:07 AM
Unknown Object (File)
Fri, Oct 17, 6:26 PM
Unknown Object (File)
Sun, Sep 28, 9:37 PM
Unknown Object (File)
Fri, Sep 26, 5:15 PM
Unknown Object (File)
Sat, Sep 20, 9:30 AM
Unknown Object (File)
Sep 4 2025, 2:24 PM
Unknown Object (File)
Aug 30 2025, 3:05 AM
Unknown Object (File)
Aug 19 2025, 11:40 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable