Page MenuHomeFreeBSD

stand: Introduce md_align
ClosedPublic

Authored by imp on May 28 2025, 9:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 5, 6:18 PM
Unknown Object (File)
Sat, Jul 5, 6:20 AM
Unknown Object (File)
Sat, Jun 28, 10:59 PM
Unknown Object (File)
Thu, Jun 26, 7:00 PM
Unknown Object (File)
Wed, Jun 25, 6:18 AM
Unknown Object (File)
Sun, Jun 22, 1:30 PM
Unknown Object (File)
Sun, Jun 22, 7:22 AM
Unknown Object (File)
Sun, Jun 22, 4:54 AM
Subscribers

Details

Summary

When we're loading metadata, we need to align it in a certian way. Right
now that way is hard-coded to be PAGE_SIZE. Rather than do the actual
physical thing in all these places, move this into a wrapper routine. We
may want to load a 16k kernel and align all these on 16k or a 4k kernel
and align on 4k on aarch64 (today you have to compile the loader with
the right page size). This will also reduce the number of places we
might have to touch to do that.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.May 28 2025, 9:49 PM

Code change looks fine, commit comment has a typo (certian vs. certain).

This revision is now accepted and ready to land.May 29 2025, 12:58 PM
This revision now requires review to proceed.May 29 2025, 6:17 PM
This revision is now accepted and ready to land.May 30 2025, 6:47 AM
This revision was automatically updated to reflect the committed changes.