diff --git a/src/supervisor.adoc b/src/supervisor.adoc index 7187dda3d..85a41ab9f 100644 --- a/src/supervisor.adoc +++ b/src/supervisor.adoc @@ -490,8 +490,10 @@ access a counter if the corresponding bits in `scounteren` and The `sscratch` CSR is an SXLEN-bit read/write register, dedicated for use by the supervisor. Typically, `sscratch` is used to hold a pointer to the hart-local supervisor context while the hart is executing -user code. At the beginning of a trap handler, `sscratch` is swapped -with a user register to provide an initial working register. +user code. +At the beginning of a trap handler, software normally uses a CSRRW +instruction to swap `sscratch` with an integer register to obtain an +initial working register. .Supervisor Scratch Register include::images/bytefield/sscratch.edn[]