MCPcopy Create free account
hub / github.com/RPCSX/rpcsx / InitOffsetTable

Function InitOffsetTable

ps3fw/cellGcmSys.cpp:112–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void InitOffsetTable()
113{
114 auto& cfg = g_fxo->get<gcm_config>();
115
116 const u32 addr = vm::alloc((3072 + 512) * sizeof(u16), vm::main);
117
118 cfg.offsetTable.ioAddress.set(addr);
119 cfg.offsetTable.eaAddress.set(addr + (3072 * sizeof(u16)));
120
121 std::memset(vm::base(addr), 0xFF, (3072 + 512) * sizeof(u16));
122}
123
124//----------------------------------------------------------------------------
125// Data Retrieval

Callers 1

_cellGcmInitBodyFunction · 0.85

Calls 3

allocFunction · 0.85
baseFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected