|
sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
|
#include "thbase.h"#include "list.h"#include "sysmem.h"#include "thmsgbx.h"#include <tamtypes.h>Go to the source code of this file.
Classes | |
| struct | regctx |
| struct | heaptag |
| struct | event |
| struct | event_flag |
| struct | semaphore |
| struct | mbox |
| struct | fpl_block |
| struct | fpool |
| struct | vpool |
| struct | alarm |
| struct | thread |
| struct | thread_context |
Macros | |
| #define | DEBUG_FLAGS (8) |
| #define | TAG_THREAD 0x7f01 |
| #define | TAG_SEMA 0x7f02 |
| #define | TAG_EVF 0x7f03 |
| #define | TAG_MBX 0x7f04 |
| #define | TAG_VPL 0x7f05 |
| #define | TAG_FPL 0x7f06 |
| #define | MAKE_HANDLE(ptr) |
| #define | HANDLE_PTR(handle) |
| #define | HANDLE_ID(handle) |
| #define | HANDLE_VERIFY(handle, t) |
| #define | ALIGN(i) |
| #define | ALIGN_256(i) |
| #define | UNIMPLEMENTED() |
| #define | TRACE() |
| #define | TRACE_ERROR() |
| #define | RESERVED_REGCTX_SIZE 0xb8 |
Functions | |
| u32 | readyq_highest () |
| struct alarm * | alarm_alloc () |
| void | alarm_free (struct alarm *alarm) |
| void | alarm_insert (struct list_head *list, struct alarm *alarm) |
| void | update_timer_compare (int timid, u64 time, struct list_head *alarm_list) |
| void * | heap_alloc (u16 tag, u32 bytes) |
| int | heap_free (struct heaptag *tag) |
| int | thread_start (struct thread *thread, int intr_state) |
| int | thread_init_and_start (struct thread *thread, int intr_state) |
| int | thread_leave (int unk, int unk2, int intr_state, int release) |
| unsigned int | thread_delay_cb (void *user) |
| int | read_sys_time (iop_sys_clock_t *clock) |
| void | waitlist_insert (struct thread *thread, struct event *event, s32 priority) |
| int | check_thread_stack () |
Variables | |
| struct thread_context | thctx |
| #define ALIGN | ( | i | ) |
Definition at line 34 of file thcommon.h.
| #define ALIGN_256 | ( | i | ) |
Definition at line 35 of file thcommon.h.
| #define DEBUG_FLAGS (8) |
Definition at line 16 of file thcommon.h.
| #define HANDLE_ID | ( | handle | ) |
Definition at line 27 of file thcommon.h.
| #define HANDLE_PTR | ( | handle | ) |
Definition at line 26 of file thcommon.h.
| #define HANDLE_VERIFY | ( | handle, | |
| t ) |
Definition at line 28 of file thcommon.h.
| #define MAKE_HANDLE | ( | ptr | ) |
Definition at line 25 of file thcommon.h.
| #define RESERVED_REGCTX_SIZE 0xb8 |
Definition at line 54 of file thcommon.h.
| #define TAG_EVF 0x7f03 |
Definition at line 20 of file thcommon.h.
| #define TAG_FPL 0x7f06 |
Definition at line 23 of file thcommon.h.
| #define TAG_MBX 0x7f04 |
Definition at line 21 of file thcommon.h.
| #define TAG_SEMA 0x7f02 |
Definition at line 19 of file thcommon.h.
| #define TAG_THREAD 0x7f01 |
Definition at line 18 of file thcommon.h.
| #define TAG_VPL 0x7f05 |
Definition at line 22 of file thcommon.h.
| #define TRACE | ( | ) |
Definition at line 44 of file thcommon.h.
| #define TRACE_ERROR | ( | ) |
Definition at line 49 of file thcommon.h.
| #define UNIMPLEMENTED | ( | ) |
Definition at line 37 of file thcommon.h.
|
extern |
Definition at line 26 of file thcommon.c.
|
extern |
Definition at line 41 of file thcommon.c.
Definition at line 50 of file thcommon.c.
|
extern |
Definition at line 119 of file thcommon.c.
|
extern |
Definition at line 133 of file thcommon.c.
|
extern |
Definition at line 144 of file thcommon.c.
|
extern |
Definition at line 240 of file thcommon.c.
|
extern |
Definition at line 287 of file thcommon.c.
|
extern |
Definition at line 107 of file thcommon.c.
|
extern |
Definition at line 199 of file thcommon.c.
|
extern |
Exit the current thread, intrman will call us back to get a new context to switch to. The first two arguments will get saved into v0 and v1 in the stored context.
The current CpuDisableIntr state is passed so that it can be restored when resuming the next user thread.
Release indicates if it was a voluntary wait or not.
Definition at line 159 of file thcommon.c.
|
extern |
Definition at line 181 of file thcommon.c.
|
extern |
Definition at line 79 of file thcommon.c.
Definition at line 63 of file thcommon.c.
|
extern |
Definition at line 24 of file thcommon.c.