Page MenuHomeFreeBSD

Add an assertion to pmap_enter().
ClosedPublic

Authored by markj on Oct 20 2018, 8:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 15 2024, 10:33 AM
Unknown Object (File)
Jan 13 2024, 11:44 AM
Unknown Object (File)
Dec 20 2023, 3:51 AM
Unknown Object (File)
Nov 23 2023, 4:33 AM
Unknown Object (File)
Oct 27 2023, 1:34 PM
Unknown Object (File)
Sep 6 2023, 11:14 AM
Unknown Object (File)
Sep 2 2023, 6:25 PM
Unknown Object (File)
Jul 22 2023, 12:25 AM
Subscribers

Details

Summary

When faulting on an existing mapping, if the mapping is managed, it
should have a PV entry. Verify this.

I found this useful while debugging some modifications.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/amd64/amd64/pmap.c
5063 ↗(On Diff #49350)

Based on line 5047, (origpte & PG_MANAGED) == 0 can never be true.

markj marked 2 inline comments as done.
  • Address Alan's comment.
sys/amd64/amd64/pmap.c
5063 ↗(On Diff #49350)

Thanks, I originally had this assertion further down.

This revision is now accepted and ready to land.Oct 20 2018, 8:25 PM
This revision was automatically updated to reflect the committed changes.