Page MenuHomeFreeBSD

param.h: Add PAGE_SIZE_MAX and PAGE_SHIFT_MAX
Needs ReviewPublic

Authored by andrew on May 2 2024, 4:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 18, 7:18 AM
Unknown Object (File)
Sep 22 2025, 7:14 PM
Unknown Object (File)
Sep 20 2025, 6:05 AM
Unknown Object (File)
Aug 23 2025, 6:04 PM
Unknown Object (File)
Aug 14 2025, 11:08 PM
Unknown Object (File)
Aug 1 2025, 8:44 AM
Unknown Object (File)
Jul 27 2025, 11:13 PM
Unknown Object (File)
Jul 7 2025, 8:28 AM

Details

Reviewers
manu
Summary

These are intended to hold the largest page size the architecture
supports.

Sponsored by: Arm Ltd

Diff Detail

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

Event Timeline

andrew requested review of this revision.May 2 2024, 4:38 PM
gallatin added inline comments.
sys/arm64/include/param.h
101

I thought 64K was mostly theoretical. Eg, we cannot actually boot a 64k kernel, while 16k works just fine with a few minor fixes.

sys/arm64/include/param.h
101

This creates an ABI that userspace will use in jemalloc. If we add a 64k kernel later then we would have to bump this and wouldn't be able to run old binaries.

sys/arm64/include/param.h
101

What is the cost of having this be 64K vs 16K (if we never implemented a 64K kernel)?