ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
srcfile.c File Reference
#include "kernel.h"
#include "internal.h"
+ Include dependency graph for srcfile.c:

Go to the source code of this file.

Data Structures

struct  SyscallData
 

Macros

#define NUM_ENTRIES   6
 

Functions

void * _start (int syscall)
 

Variables

static struct SyscallData entries [NUM_ENTRIES]
 

Macro Definition Documentation

◆ NUM_ENTRIES

#define NUM_ENTRIES   6

Definition at line 18 of file srcfile.c.

Function Documentation

◆ _start()

void* _start ( int  syscall)

Definition at line 30 of file srcfile.c.

31 {
32  int i;
33 
34  for(i = 0; i < NUM_ENTRIES; i++)
35  {
36  if(syscall == entries[i].syscall)
37  return entries[i].function;
38  }
39 
40  return NULL;
41 }
#define NUM_ENTRIES
Definition: srcfile.c:18
static struct SyscallData entries[NUM_ENTRIES]
Definition: srcfile.c:19
void * function
Definition: alarm.c:23
#define NULL
Definition: tamtypes.h:91

References entries, SyscallData::function, NULL, NUM_ENTRIES, and SyscallData::syscall.

Variable Documentation

◆ entries

struct SyscallData entries[NUM_ENTRIES]
static
Initial value:
= {
{0xfc, &SetAlarm},
{0xfd, &SetAlarm},
{0xfe, &ReleaseAlarm},
{0xff, &ReleaseAlarm},
{0x12c, &Intc12Handler},
}
void ResumeIntrDispatch(void)
s32 SetAlarm(u16 time, void(*callback)(s32 alarm_id, u16 time, void *common), void *common)
s32 ReleaseAlarm(s32 alarm_id)
Definition: alarm.c:110
void Intc12Handler(void)
Definition: alarm.c:167

Definition at line 1 of file srcfile.c.

Referenced by _start().