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)
Tue, Oct 29, 9:49 PM
Unknown Object (File)
Fri, Oct 25, 11:45 AM
Unknown Object (File)
Sep 15 2024, 10:11 PM
Unknown Object (File)
Sep 10 2024, 2:16 AM
Unknown Object (File)
Sep 8 2024, 2:12 PM
Unknown Object (File)
Sep 8 2024, 11:11 AM
Unknown Object (File)
Sep 4 2024, 4:53 PM
Unknown Object (File)
Aug 13 2024, 2:28 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

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