sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
patch_enable_lmb.c File Reference
#include <tamtypes.h>
#include <kernel.h>
#include <iopheap.h>
#include <sifrpc.h>
#include <string.h>
#include "smem.h"
#include "smod.h"
#include "slib.h"
#include "common.h"

Go to the source code of this file.

Macros

#define JAL(addr)
#define HI16(addr)
#define LO16(addr)

Functions

int sbv_patch_enable_lmb (void)

Variables

struct smem_buf smem_buf
slib_exp_lib_list_t _slib_cur_exp_lib_list

Detailed Description

SBV patch to enable LoadModuleBuffer() via RPC.

Definition in file patch_enable_lmb.c.

Macro Definition Documentation

◆ HI16

#define HI16 ( addr)
Value:
(0x3c110000 | (((addr) >> 16) & 0xffff))

Definition at line 35 of file patch_enable_lmb.c.

◆ JAL

#define JAL ( addr)
Value:
(0x0c000000 | (0x3ffffff & ((addr) >> 2)))

Definition at line 34 of file patch_enable_lmb.c.

◆ LO16

#define LO16 ( addr)
Value:
(0x36310000 | ((addr) & 0xffff))

Definition at line 36 of file patch_enable_lmb.c.

Function Documentation

◆ sbv_patch_enable_lmb()

int sbv_patch_enable_lmb ( void )
Returns
0: success, none-zero: error

The rom0:LOADFILE RPC service is missing support for LoadModuleBuffer, making it impossible (by default) to IOP load modules from EE RAM. Newer LOADFILE modules do not have this limitation. Unlike the official patch, this version is not dependent on 0x01e00000-0x01e80000.

Definition at line 68 of file patch_enable_lmb.c.

Variable Documentation

◆ _slib_cur_exp_lib_list

slib_exp_lib_list_t _slib_cur_exp_lib_list
extern

Definition at line 26 of file slib.c.