Changes

Jump to navigation Jump to search
691 bytes added ,  05:22, 30 August 2016
no edit summary
Line 2: Line 2:     
Size : 0x1000 bytes (1 page)
 
Size : 0x1000 bytes (1 page)
 +
 +
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.
     
374

edits

Navigation menu