ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <iopheap.h>
#include <string.h>
#include "slib.h"
#include "smod.h"
#include "common.h"
Go to the source code of this file.
Macros | |
#define | JMP(addr) (0x08000000|(0x3ffffff&((addr)>>2))) |
#define | JAL(addr) (0x0c000000 | (0x3ffffff & ((addr) >> 2))) |
Functions | |
int | sbv_patch_fileio (void) |
#define JAL | ( | addr | ) | (0x0c000000 | (0x3ffffff & ((addr) >> 2))) |
Definition at line 13 of file patch_fileio.c.
#define JMP | ( | addr | ) | (0x08000000|(0x3ffffff&((addr)>>2))) |
Definition at line 12 of file patch_fileio.c.
int sbv_patch_fileio | ( | void | ) |
The rom0:FILEIO RPC service has several glitches, which either result in stability issues or faulty behaviour:
Definition at line 15 of file patch_fileio.c.
References ALIGNED, SifDmaTransfer_t::attr, SifDmaTransfer_t::dest, JAL, JMP, NULL, SifAllocIopHeap(), SifInitIopHeap(), SifSetDma(), SifDmaTransfer_t::size, smem_write_word(), smod_get_mod_by_name(), SifDmaTransfer_t::src, smod_mod_info_t::text_start, UNCACHED_SEG, and smod_mod_info_t::version.