Page MenuHomeFreeBSD

Re-use gp register for PCPU.
ClosedPublic

Authored by br on Feb 3 2016, 3:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 7:48 AM
Unknown Object (File)
Sep 16 2025, 1:32 AM
Unknown Object (File)
Sep 11 2025, 10:17 PM
Unknown Object (File)
Sep 3 2025, 3:55 PM
Unknown Object (File)
Aug 2 2025, 9:42 AM
Unknown Object (File)
Jul 18 2025, 5:26 PM
Unknown Object (File)
Jul 14 2025, 6:49 PM
Unknown Object (File)
Jul 14 2025, 4:06 PM
Subscribers
None

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

br retitled this revision from to Re-use gp register for PCPU..
br updated this object.
br edited the test plan for this revision. (Show Details)
br added reviewers: jhb, andrew, kib.

Is gp == sscratch from the RISC-V privileged spec ?

In D5178#110085, @kib wrote:

Is gp == sscratch from the RISC-V privileged spec ?

gp is global pointer (used by compiler in userland only).
sscratch is a temporary register (not related to gp at all).

sscratch is used to exchange kernel/userland SP

This revision was automatically updated to reflect the committed changes.