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
Unknown Object (File)
Thu, Sep 3, 7:17 AM
Unknown Object (File)
Thu, Sep 3, 5:22 AM
Unknown Object (File)
Wed, Sep 2, 10:36 AM
Unknown Object (File)
Mon, Aug 31, 9:52 AM
Unknown Object (File)
Fri, Aug 28, 4:11 PM
Unknown Object (File)
Wed, Aug 26, 5:22 PM
Unknown Object (File)
Tue, Aug 25, 11:02 PM
Unknown Object (File)
Tue, Aug 25, 11:00 PM
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