Changes

Jump to navigation Jump to search
342 bytes removed ,  03:50, 21 August 2017
Line 50: Line 50:  
  this->MapBaseAddr = BaseAddr + min(rnd0, rnd1)
 
  this->MapBaseAddr = BaseAddr + min(rnd0, rnd1)
 
  this->HeapRegionBaseAddr = this->MapBaseAddr + MapRegionSize + max(rnd0, rnd1) - min(rnd0, rnd1)
 
  this->HeapRegionBaseAddr = this->MapBaseAddr + MapRegionSize + max(rnd0, rnd1) - min(rnd0, rnd1)
  −
==Thread context==
  −
This is the structure of the 0x228-byte threadctx used by official userland software.
  −
  −
{| class="wikitable" border="1"
  −
|-
  −
! Offset
  −
! Size
  −
! Description
  −
|-
  −
| 0x0
  −
| 0xA8
  −
| ?
  −
|-
  −
| 0xA8
  −
| 0x8
  −
| Address of the stack-bottom-mirror which the thread was created with.
  −
|-
  −
| 0xB0
  −
| 0x8
  −
| Size of the stack.
  −
|-
  −
| 0xB8
  −
| 0x178
  −
| ?
  −
|}
      
= Kernel =
 
= Kernel =

Navigation menu