Page MenuHomeFreeBSD

RISC-V: Ensure kernel stack is aligned
ClosedPublic

Authored by jrtc27 on Dec 29 2019, 10:00 PM.

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jrtc27 created this revision.Dec 29 2019, 10:00 PM
br accepted this revision.Dec 29 2019, 11:48 PM

Looks good. Thank you!

This revision is now accepted and ready to land.Dec 29 2019, 11:48 PM
This revision was automatically updated to reflect the committed changes.