Page MenuHomeFreeBSD

mi_switch.9: Remove cpu_switch, cpu_throw
ClosedPublic

Authored by emaste on Tue, Jan 7, 4:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 12, 7:21 PM
Unknown Object (File)
Sun, Jan 12, 10:00 AM
Unknown Object (File)
Sat, Jan 11, 10:18 PM
Unknown Object (File)
Sat, Jan 11, 5:48 AM
Unknown Object (File)
Sat, Jan 11, 3:27 AM
Unknown Object (File)
Sat, Jan 11, 3:08 AM
Unknown Object (File)
Fri, Jan 10, 10:11 AM
Unknown Object (File)
Tue, Jan 7, 4:29 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.Tue, Jan 7, 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.Tue, Jan 7, 4:17 PM
This revision was automatically updated to reflect the committed changes.