Page MenuHomeFreeBSD

amd64: store pcids pmap data in pcpu zone
ClosedPublic

Authored by kib on May 1 2023, 11:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 13, 1:43 PM
Unknown Object (File)
Dec 15 2025, 12:51 PM
Unknown Object (File)
Dec 14 2025, 3:32 PM
Unknown Object (File)
Dec 10 2025, 9:01 AM
Unknown Object (File)
Nov 1 2025, 9:09 AM
Unknown Object (File)
Nov 1 2025, 6:04 AM
Unknown Object (File)
Nov 1 2025, 4:41 AM
Unknown Object (File)
Nov 1 2025, 1:03 AM
Subscribers

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib requested review of this revision.May 1 2023, 11:53 AM
sys/amd64/amd64/pmap.c
2031

Or just (void *)(uintptr_t)offsetof(struct pcpu, pc_kpmap_store)?

sys/amd64/include/_pmap.h
2

Missing a license header.

5

Why "pcids" instead of "pcid"?

sys/amd64/include/pmap.h
542–543
kib marked 4 inline comments as done.May 1 2023, 2:48 PM
kib added inline comments.
sys/amd64/include/_pmap.h
5

I do not remember why did I named it with 's'. Included the rename into the series.

kib marked an inline comment as done.

Rename pmap_pcids to pmap_pcid.
Simplify kernel pmap pcpu pointer calculation.
Add license.

This revision is now accepted and ready to land.May 1 2023, 3:11 PM
sys/amd64/amd64/pmap.c
388–389
kib marked an inline comment as done.May 2 2023, 1:16 AM