Skip to content
Snippets Groups Projects
Unverified Commit affebe29 authored by Jimmy Brush's avatar Jimmy Brush
Browse files

manual: Correct CNode slot size in bytes

It is 16 bytes on 32-bit systems and 32 bytes on 64-bit systems
parent 82f2d1fc
No related branches found
No related tags found
No related merge requests found
......@@ -63,9 +63,10 @@ individual capabilities within their CSpaces when invoking methods.
CSpaces are created by creating and manipulating \obj{CNode} objects.
When creating a \obj{CNode} the user must specify the number of slots
that it will have, and this determines the amount of memory that it
will use. Each slot requires 16 bytes of physical memory and has the
capacity to hold exactly one capability. Like any other object, a
\obj{CNode} must be created by calling
will use. Each slot requires $2^\texttt{seL4\_SlotBits}$ bytes of physical
memory and has the capacity to hold exactly one capability. This is 16
bytes on 32-bit architectures and 32 bytes on 64-bit architectures.
Like any other object, a \obj{CNode} must be created by calling
\apifunc{seL4\_Untyped\_Retype}{untyped_retype} on an appropriate
amount of untyped memory (see \autoref{sec:object_sizes}). The caller
must therefore have a capability to enough untyped memory as well as
......
......@@ -401,7 +401,10 @@ argument to \apifunc{seL4\_Untyped\_Retype}{untyped_retype} is ignored.
\toprule
Type & Meaning of \texttt{size\_bits} & Size in Bytes \\
\midrule
\obj{CNode} & $\log_2$ number of slots & $2^\texttt{size\_bits} \cdot 16$ \\
\obj{CNode} & $\log_2$ number of slots & $2^\texttt{size\_bits} \cdot 2^\texttt{seL4\_SlotBits}$
\texttt{seL4\_SlotBits} is: \newline
\emph{on 32-bit architectures:} 4 \newline
\emph{on 64-bit architectures:} 5 \\
\obj{Untyped} & $\log_2$ size in bytes & $2^\texttt{size\_bits}$ \\
\bottomrule
\end{tabularx}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment