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)
Wed, Apr 29, 3:29 PM
Unknown Object (File)
Wed, Apr 29, 3:21 PM
Unknown Object (File)
Wed, Apr 29, 1:16 PM
Unknown Object (File)
Wed, Apr 29, 5:55 AM
Unknown Object (File)
Tue, Apr 28, 6:03 AM
Unknown Object (File)
Fri, Apr 24, 4:29 AM
Unknown Object (File)
Sat, Apr 18, 1:20 PM
Unknown Object (File)
Thu, Apr 16, 10:07 AM
Subscribers
None

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

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.