Page MenuHomeFreeBSD

subr_physmem_test: add tests for two edge-cases
Needs ReviewPublic

Authored by mhorne on Jul 8 2024, 3:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 8 2025, 9:23 PM
Unknown Object (File)
Nov 5 2025, 4:29 PM
Unknown Object (File)
Nov 5 2025, 2:56 AM
Unknown Object (File)
Nov 3 2025, 8:52 PM
Unknown Object (File)
Oct 20 2025, 4:46 PM
Unknown Object (File)
Oct 20 2025, 4:46 PM
Unknown Object (File)
Oct 20 2025, 2:53 AM
Unknown Object (File)
Oct 12 2025, 10:59 PM
Subscribers

Details

Reviewers
markj
andrew
Summary

Help validate my recent assertion that "physmem will never report empty
ranges". Part of this is covered by the existing tests, which check the
merging of adjacent/overlapping regions. The other part is to ensure
that addition of zero-sized ranges is ignored.

The implementation also includes logic to ignore the first physical page
of memory (physical addresses 0 to PAGE_SIZE-1). Add a second test case
for this.

Diff Detail

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