Skip to content

Commit fe63660

Browse files
committed
add: Comments related to when extended IOP functions were introduced
1 parent 8a71c53 commit fe63660

8 files changed

Lines changed: 23 additions & 2 deletions

File tree

iop/system/loadcore/include/xloadcore.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ extern "C" {
2525
#define xloadcore_IMPORTS_start DECLARE_IMPORT_TABLE(loadcore, 1, 3)
2626
#define xloadcore_IMPORTS_end END_IMPORT_TABLE
2727

28+
// The following was introduced in export version 1.3 (around SDK 2.3.4)
2829
extern void ApplyElfRelSection(void *buffer, const void *module, int element_count);
2930
extern void CopyModInfo(FileInfo_t *ModuleInfo, ModuleInfo_t *ModInfo);
3031
extern int SetRebootTimeLibraryHandlingMode(struct irx_export_table *exports, int mode);

iop/system/modload/include/xmodload.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
extern "C" {
2323
#endif
2424

25+
// The following was introduced in export version 1.3 (around SDK 2.3)
2526
extern int GetModuleIdList(int *readbuf, int readbufsize, int *modulecount);
2627

2728
typedef struct {
@@ -70,8 +71,12 @@ extern int SearchModuleByName(const char *name);
7071
extern int SearchModuleByAddress(const void *addr);
7172
extern int SelfStopModule(int arglen, const char *args, int *result);
7273
extern void SelfUnloadModule(void);
74+
75+
// The following was introduced in export version 1.5 (around SDK 2.3.4)
7376
extern void *AllocLoadMemory(int type, unsigned int size, void *addr);
7477
extern int FreeLoadMemory(void *area);
78+
79+
// The following was introduced in export version 1.6 (around SDK 2.5)
7580
extern int SetModuleFlags(int modid, int flag);
7681

7782
#define xmodload_IMPORTS_start DECLARE_IMPORT_TABLE(modload, 1, 7)

iop/system/sifman/include/sifman.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ extern int sceSifCheckInit();
141141
extern void sceSifSetDmaIntrHandler(void (*handler)(void *userdata), void *arg);
142142
extern void sceSifResetDmaIntrHandler();
143143

144+
// The following was implemented around SDK 2.2
144145
extern unsigned int sceSifSetDmaIntr(SifDmaTransfer_t *dmat, int count, void (*completioncb)(void *userdata), void *userdata);
145146

146147
#define sifman_IMPORTS_start DECLARE_IMPORT_TABLE(sifman, 1, 1)

iop/system/stdio/include/stdio.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,16 @@ extern int fdgetc(int fd);
3333
extern int fdputc(int c, int fd);
3434
extern int fdputs(const char *s, int fd);
3535
extern char *fdgets(char *buf, int fd);
36+
37+
// The following was introduced in export version 1.3 (around SDK 2.3)
3638
extern int vfdprintf(int fd, const char *format, va_list ap);
3739

3840
#define stdio_IMPORTS_start DECLARE_IMPORT_TABLE(stdio, 1, 2)
3941
#define stdio_IMPORTS_end END_IMPORT_TABLE
4042

43+
#define xstdio_IMPORTS_start DECLARE_IMPORT_TABLE(stdio, 1, 3)
44+
#define xstdio_IMPORTS_end END_IMPORT_TABLE
45+
4146
#define I_printf DECLARE_IMPORT(4, printf)
4247
#define I_getchar DECLARE_IMPORT(5, getchar)
4348
#define I_putchar DECLARE_IMPORT(6, putchar)

iop/system/sysclib/include/sysclib.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ extern char *strstr(const char *haystack, const char *needle);
7171
extern char *strtok(char *s, const char *delim);
7272
extern long strtol(const char *s, char **endptr, int base);
7373
extern unsigned long strtoul(const char *s, char **endptr, int base);
74+
75+
// The following was introduced in export version 1.2 (around SDK 2.3)
7476
extern int vsprintf(char *, const char *, va_list);
77+
78+
// The following was introduced in export version 1.4 (around SDK 2.8)
7579
extern char *strtok_r(char *s, const char *delim, char **lasts);
7680

7781
#ifndef SYSCLIB_DISABLE_BUILTINS

iop/system/sysmem/include/xsysmem.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ typedef union sysmem_info_
5151
sysmem_meminfo_t meminfo; /* when flag of GetSysMemoryInfo is nonzero */
5252
} sysmem_info_t;
5353

54+
// The following was implemented around SDK 3.0.0
5455
extern void GetSysMemoryInfo(int flag, sysmem_info_t *info);
5556

5657
#define I_GetSysMemoryInfo DECLARE_IMPORT(11, GetSysMemoryInfo)

iop/system/threadman/include/xthbase.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
extern "C" {
2323
#endif
2424

25+
// The following was introduced in export version 1.2 (around SDK 2.5.0)
26+
2527
#define TSS_THREAD 0
2628
#define TSS_DISABLEINTR 3
2729
#define TSS_NOTHREAD 4
@@ -45,7 +47,7 @@ extern int GetThreadStackFreeSize(int thid);
4547

4648
extern int GetThreadmanIdList(int type, int *readbuf, int readbufsize, int *objectcount);
4749

48-
#define xthbase_IMPORTS_start DECLARE_IMPORT_TABLE(thbase, 1, 1)
50+
#define xthbase_IMPORTS_start DECLARE_IMPORT_TABLE(thbase, 1, 2)
4951
#define xthbase_IMPORTS_end END_IMPORT_TABLE
5052

5153
#define I_GetThreadCurrentPriority DECLARE_IMPORT(42, GetThreadCurrentPriority)

iop/system/timrman/include/xtimrman.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
extern "C" {
2323
#endif
2424

25+
// The following was introduced in export version 1.2 (around SDK 2.0.5)
26+
2527
#define TC_SYSCLOCK 1
2628
#define TC_PIXEL 2
2729
#define TC_HLINE 4
@@ -32,7 +34,7 @@ extern int SetupHardTimer(int timid, int source, int mode, int prescale);
3234
extern int StartHardTimer(int timid);
3335
extern int StopHardTimer(int timid);
3436

35-
#define xtimrman_IMPORTS_start DECLARE_IMPORT_TABLE(timrman, 1, 1)
37+
#define xtimrman_IMPORTS_start DECLARE_IMPORT_TABLE(timrman, 1, 2)
3638
#define xtimrman_IMPORTS_end END_IMPORT_TABLE
3739

3840
#define I_SetTimerHandler DECLARE_IMPORT(20, SetTimerHandler)

0 commit comments

Comments
 (0)