Page MenuHomeFreeBSD

subr_physmem_test: add tests for two edge-cases
ClosedPublic

Authored by mhorne on Jul 8 2024, 3:23 PM.
Tags
None
Referenced Files
F174768511: D45914.diff
Mon, Oct 5, 9:12 PM
Unknown Object (File)
Fri, Oct 2, 6:36 AM
Unknown Object (File)
Thu, Oct 1, 6:03 AM
Unknown Object (File)
Sat, Sep 26, 11:48 AM
Unknown Object (File)
Fri, Sep 18, 8:20 PM
Unknown Object (File)
Sep 3 2026, 7:17 AM
Unknown Object (File)
Sep 3 2026, 5:22 AM
Unknown Object (File)
Sep 2 2026, 10:36 AM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable