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)
Mon, Mar 10, 11:23 AM
Unknown Object (File)
Tue, Mar 4, 5:07 PM
Unknown Object (File)
Mon, Mar 3, 7:36 PM
Unknown Object (File)
Mon, Feb 24, 8:36 AM
Unknown Object (File)
Mon, Feb 17, 10:58 PM
Unknown Object (File)
Mon, Feb 17, 8:14 PM
Unknown Object (File)
Feb 16 2025, 1:12 AM
Unknown Object (File)
Feb 9 2025, 7:58 PM
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.