From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Platform:PlayStation" |
|---|
| claim | "A thread control block (TCB) of the PS1 BIOS is 0xC0 bytes: status (0x1000 free, 0x4000 used), an unknown word, the 32 general registers at 0x08, EPC at 0x88, HI, LO, SR and CAUSE up to 0x98, and 9 unused words; DuckStation's BIOS code defines 0x2000 bytes for control blocks, which holds 0x2000/0xC0 = 42 of them." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:PlayStation" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "ThreadControlBlock" |
|---|
| size | "0xC0" |
|---|
| fields | | offset | "0x00" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "status" |
|---|
|
| offset | "0x04" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "unknown_04" |
|---|
|
| offset | "0x08" |
|---|
| size | 128 |
|---|
| type | "u32[32]" |
|---|
| name | "regs" |
|---|
|
| offset | "0x88" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "epc" |
|---|
|
| offset | "0x8C" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "hi" |
|---|
|
| offset | "0x90" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "lo" |
|---|
|
| offset | "0x94" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "sr" |
|---|
|
| offset | "0x98" |
|---|
| size | 4 |
|---|
| type | "u32" |
|---|
| name | "cause" |
|---|
|
| offset | "0x9C" |
|---|
| size | 36 |
|---|
| type | "u32[9]" |
|---|
| name | "unused_9c" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "Read struct ThreadControlBlock with static_asserts for the offsets and sizeof == 0xC0, enum ThreadStatus (Free 0x1000, Used 0x4000), THREAD_HANDLE_BASE 0xFF000000 and KERNEL_CONTROL_BLOCK_MEMORY_SIZE 0x2000. This is DuckStation's own definition used by its BIOS code (licence CC-BY-NC-ND-4.0: facts only); the 0xC0 size agrees with psx-spx docs/kernelbios.md line 124 (N*C0h)." |
|---|
| repo | "https://github.com/stenzek/duckstation" |
|---|
| commit | "9766391b610fd836ffda0b3e47ab098d04f72ee8" |
|---|
| path | "src/core/bios_types.h" |
|---|
| lines | "13-60" |
|---|
|
|
|---|
| confidence | "medium" |
|---|
| related | |
|---|
| key | "BIOS thread control block" |
|---|
| topic | "Platform:PlayStation/BIOS calls" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T12:13:44.544Z" |
|---|
| verifications | |
|---|