Each [[KThread|thread]] is allocated a 0x1000-byte page in this region for the [[KThreadContext|thread context]]. Each thread has its context address stored as 2 members:
+
+
+
{| class="wikitable" border="1"
+
|-
+
! Offset
+
! Type
+
! Description
+
|-
+
| 0x88
+
| u32*
+
| Ptr to svc mode register storage for KThread inside the thread context.
+
|-
+
| 0x8C
+
| u32*
+
| End-address of the page for this thread context allocated in the [[Memory_layout|0xFF4XX000]] region.
+
|}
+
+
KThread offset 0x88 points to offset 0xF50 in the thread context and 0x8C points to the end of the thread context page. The kernel refers to the thread context page by subtracting from the end instead of adding from the beginning.