Page MenuHomeFreeBSD

mi_switch.9: Remove cpu_switch, cpu_throw
ClosedPublic

Authored by emaste on Jan 7 2025, 4:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 1:45 AM
Unknown Object (File)
Sep 5 2025, 3:15 PM
Unknown Object (File)
Aug 7 2025, 8:53 PM
Unknown Object (File)
Jul 28 2025, 2:11 PM
Unknown Object (File)
Jul 7 2025, 7:01 AM
Unknown Object (File)
Jul 6 2025, 11:40 PM
Unknown Object (File)
Jul 6 2025, 4:02 AM
Unknown Object (File)
Jul 2 2025, 10:45 AM
Subscribers

Details

Summary
cpu_machdep.9 was added to document cpu_*, but cpu_switch and cpu_throw
were already documented in mi_switch.9, and MLINKed.  cpu_machdep.9
seems like the correct place for this, so remove them from mi_switch.9.

Reported by: tools/pkgbase/metalog_reader.lua
Fixes: 9c87cbbcaaed ("cpu_machdep.9: New manpage describing the semantics of several cpu_*")

Diff Detail

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

Event Timeline

emaste requested review of this revision.Jan 7 2025, 4:08 PM
emaste created this revision.

Found via:

error: ./usr/share/man/man9/cpu_switch.9.gz exists in multiple locations and with different meta: line 27352,28023. off by "size"
error: ./usr/share/man/man9/cpu_throw.9.gz exists in multiple locations and with different meta: line 27358,28024. off by "size"

Not sure if some of the text removed from here should be added to to cpu_machdep.9.

The differences in cpu_throw are actually stale (we don't use it from thread_exit anymore). The fact that curthread and the current pmap are changed in cpu_switch probably is a detail worth carrying over to cpu_machdep(9).

This revision is now accepted and ready to land.Jan 7 2025, 4:17 PM
This revision was automatically updated to reflect the committed changes.