diff options
| author | 2015-08-05 21:39:53 -0300 | |
|---|---|---|
| committer | 2015-08-16 01:03:48 -0300 | |
| commit | 14eca982f4da2bfd4d2c105bc33722e88e59da5f (patch) | |
| tree | d812de676c6e2d056ac43abec89251aa36162165 /src/core/memory.h | |
| parent | Kernel: Add more infrastructure to support different memory layouts (diff) | |
| download | yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.tar.gz yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.tar.xz yuzu-14eca982f4da2bfd4d2c105bc33722e88e59da5f.zip | |
Kernel: Implement svcGetProcessInfo in a basic way
This also adds some basic memory usage accounting. These two types are
used by Super Smash Bros. during startup.
Diffstat (limited to 'src/core/memory.h')
| -rw-r--r-- | src/core/memory.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/memory.h b/src/core/memory.h index d1d32f0dd..c136cbd55 100644 --- a/src/core/memory.h +++ b/src/core/memory.h | |||
| @@ -105,9 +105,11 @@ enum : VAddr { | |||
| 105 | // hardcoded value. | 105 | // hardcoded value. |
| 106 | /// Area where TLS (Thread-Local Storage) buffers are allocated. | 106 | /// Area where TLS (Thread-Local Storage) buffers are allocated. |
| 107 | TLS_AREA_VADDR = 0x1FF82000, | 107 | TLS_AREA_VADDR = 0x1FF82000, |
| 108 | TLS_AREA_SIZE = 0x00030000, // Each TLS buffer is 0x200 bytes, allows for 300 threads | 108 | TLS_ENTRY_SIZE = 0x200, |
| 109 | TLS_AREA_SIZE = 300 * TLS_ENTRY_SIZE, // Allows for up to 300 threads | ||
| 109 | TLS_AREA_VADDR_END = TLS_AREA_VADDR + TLS_AREA_SIZE, | 110 | TLS_AREA_VADDR_END = TLS_AREA_VADDR + TLS_AREA_SIZE, |
| 110 | 111 | ||
| 112 | |||
| 111 | /// Equivalent to LINEAR_HEAP_VADDR, but expanded to cover the extra memory in the New 3DS. | 113 | /// Equivalent to LINEAR_HEAP_VADDR, but expanded to cover the extra memory in the New 3DS. |
| 112 | NEW_LINEAR_HEAP_VADDR = 0x30000000, | 114 | NEW_LINEAR_HEAP_VADDR = 0x30000000, |
| 113 | NEW_LINEAR_HEAP_SIZE = 0x10000000, | 115 | NEW_LINEAR_HEAP_SIZE = 0x10000000, |