Page MenuHomeFreeBSD

Implement pmap_mincore() for riscv.
ClosedPublic

Authored by markj on Jul 25 2018, 6:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Feb 12, 5:46 PM
Unknown Object (File)
Tue, Feb 11, 1:52 PM
Unknown Object (File)
Mon, Feb 10, 8:01 AM
Unknown Object (File)
Sun, Feb 9, 6:37 AM
Unknown Object (File)
Sat, Feb 8, 2:45 AM
Unknown Object (File)
Jan 10 2025, 4:36 PM
Unknown Object (File)
Nov 30 2024, 2:45 PM
Unknown Object (File)
Sep 18 2024, 11:33 AM
Subscribers

Details

Test Plan

Tests in lib/libc/sys/mincore_test pass.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18333
Build 18054: arc lint + arc unit

Event Timeline

markj added reviewers: alc, br.
alc added inline comments.
sys/riscv/riscv/pmap.c
3200

Why |= here and ...

3207

simply = here?

This revision is now accepted and ready to land.Jul 26 2018, 3:32 PM
sys/riscv/riscv/pmap.c
3200

No reason. I'll change it to = before committing.

sys/riscv/riscv/pmap.c
3198

As an aside, the RISC-V designers have made an interesting architectural choice here. Hypothetically, we could speed up fork() on x86 by removing write permission at the upper levels of the page table, and sharing the lower-level page table pages until pmap_enter() tries to create a writeable mapping at a lower level. Only then would you allocate a new page table page, copying the old one, and removing write access from the other PTEs in that copied page table page. However, this way of expressing superpage mappings eliminates the possibility of such an optimization.

This revision was automatically updated to reflect the committed changes.