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)
Dec 20 2023, 12:59 AM
Unknown Object (File)
Oct 19 2023, 8:58 PM
Unknown Object (File)
Aug 28 2023, 9:15 PM
Unknown Object (File)
Jul 8 2023, 9:18 AM
Unknown Object (File)
Jul 2 2023, 5:55 PM
Unknown Object (File)
Jun 16 2023, 3:26 AM
Unknown Object (File)
Jun 3 2023, 8:09 AM
Unknown Object (File)
Jun 2 2023, 6:31 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