Skip to content

Commit

Permalink
Handbook: Fixed calling convension errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Emoun committed Nov 25, 2022
1 parent 63d12a4 commit 615a988
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/handbook/abi.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ \section{Register Usage Conventions}
used otherwise.
\texttt{r31} is guaranteed to always hold the current stack pointer and
is not used otherwise by the compiler.
\item \texttt{r1} through \texttt{r19} are caller-saved \emph{scratch}
\item \texttt{r1} through \texttt{r20} are caller-saved \emph{scratch}
registers.
\item \texttt{r20} through \texttt{r31} are callee-saved \emph{saved}
\item \texttt{r21} through \texttt{r31} are callee-saved \emph{saved}
registers.
\end{itemize}

Expand Down Expand Up @@ -58,7 +58,7 @@ \section{Register Usage Conventions}
\item The stack cache control registers \texttt{ss} and \texttt{st} are
callee-saved \emph{saved} registers.
\item The return information registers \texttt{s7-s10} (\texttt{srb},
\texttt{sro}, \texttt{sxb}, \texttt{sxo}) are callee-saved
\texttt{sro}, \texttt{sxb}, \texttt{sxo}) are caller-saved
\emph{saved} registers.
\item All other special registers are caller-saved scratch registers and
should not be used across function calls.
Expand Down

0 comments on commit 615a988

Please sign in to comment.