Page MenuHomeFreeBSD

Re-use gp register for PCPU.
ClosedPublic

Authored by br on Feb 3 2016, 3:58 PM.
Tags
None
Referenced Files
F82178953: D5178.diff
Fri, Apr 26, 5:36 AM
Unknown Object (File)
Dec 19 2023, 11:38 PM
Unknown Object (File)
Dec 4 2023, 1:14 PM
Unknown Object (File)
Nov 13 2023, 10:51 AM
Unknown Object (File)
Nov 12 2023, 6:45 AM
Unknown Object (File)
Nov 9 2023, 6:41 AM
Unknown Object (File)
Nov 5 2023, 8:05 PM
Unknown Object (File)
Nov 5 2023, 10:01 AM
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.