Page MenuHomeFreeBSD

stand/efi: Use EFI_PAGE_SIZE here, it's more appropriate
ClosedPublic

Authored by imp on Wed, May 28, 9:48 PM.
Tags
None
Referenced Files
F119458978: D50584.diff
Mon, Jun 9, 1:19 AM
Unknown Object (File)
Sat, Jun 7, 3:23 AM
Unknown Object (File)
Fri, Jun 6, 3:04 AM
Unknown Object (File)
Sat, May 31, 8:33 AM
Unknown Object (File)
Fri, May 30, 5:44 PM
Subscribers

Details

Summary

No functional change: We're allocating a page from EFI, which is always
4k on amd64. So, this should always be 4k. PAGE_SIZE usually is this,
but might not be in some cases. For the end of the stack pointer in the
ist1, it should point the architecture's phyiscal page past where we've
allocated. EFI_PAGE_SIZE more faithfully reflects that here since
PAGE_SIZE might not be exactly that in the future (if we had a larger
logical page than physical page). Since the AllocPage interface is in
EFI_PAGE_SIZE pages always, this seems safer. No functional change since
they are both 2096 today.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 64533
Build 61417: arc lint + arc unit

Event Timeline

imp requested review of this revision.Wed, May 28, 9:49 PM
This revision is now accepted and ready to land.Wed, May 28, 9:53 PM

The code change is fine, but the commit comment has several typos (appropraite vs. appropriate, phyiscal vs. physical, 2096 vs. 4096).

imp retitled this revision from stand/efi: Use EFI_PAGE_SIZE here, it's more appropraite to stand/efi: Use EFI_PAGE_SIZE here, it's more appropriate.Thu, May 29, 6:04 PM
This revision now requires review to proceed.Thu, May 29, 6:17 PM
This revision is now accepted and ready to land.Thu, May 29, 9:16 PM