Page MenuHomeFreeBSD

Fix the spelling of EFI_PAGE_SIZE
ClosedPublic

Authored by andrew on Mar 9 2022, 6:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 16, 2:39 AM
Unknown Object (File)
Tue, Jan 13, 8:28 PM
Unknown Object (File)
Wed, Jan 7, 6:24 PM
Unknown Object (File)
Dec 1 2025, 12:14 AM
Unknown Object (File)
Nov 28 2025, 10:43 PM
Unknown Object (File)
Nov 27 2025, 6:57 AM
Unknown Object (File)
Nov 26 2025, 2:31 AM
Unknown Object (File)
Nov 20 2025, 7:23 PM
Subscribers

Details

Summary

We assume EFI_PAGE_SIZE is the same as PAGE_SIZE, however this may not
be the case. Use the former when working with a list of pages from the
UEFI firmware so the correct size is used.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44725
Build 41613: arc lint + arc unit

Event Timeline

andrew requested review of this revision.Mar 9 2022, 6:42 PM

These look good... but where's EFI_PAGE_SIZE defined? And does it need to be a run-time thing?
It's a good fix, but I'd like to understand the larger context :)

This revision is now accepted and ready to land.Mar 9 2022, 7:20 PM
In D34510#781812, @imp wrote:

These look good... but where's EFI_PAGE_SIZE defined? And does it need to be a run-time thing?
It's a good fix, but I'd like to understand the larger context :)

AFAIK the spec doesn't allow any flexibility here, every arch is forced to 4k pages to be compliant (see various mmu configuration verbiages in "Calling Conventions")

In D34510#781812, @imp wrote:

These look good... but where's EFI_PAGE_SIZE defined? And does it need to be a run-time thing?
It's a good fix, but I'd like to understand the larger context :)

AFAIK the spec doesn't allow any flexibility here, every arch is forced to 4k pages to be compliant (see various mmu configuration verbiages in "Calling Conventions")

oh! It's so *OUR* PAGE_SIZE to change.... :) Thanks for the pointers... my brain glossed over them before....

This revision was automatically updated to reflect the committed changes.