mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-23 10:19:10 +00:00
6ebfae8ef1
Added interface.cpp (plugin/pcsx2 interface) and savestate.cpp to SPU2ghz, to help clean up SPU2.cpp. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@463 96395faa-99c1-11dd-bbfe-3dabce05a288
35 lines
542 B
C
35 lines
542 B
C
|
|
#include <tamtypes.h>
|
|
#include <stdio.h>
|
|
|
|
#include "eeload.h"
|
|
#include "eeinit.h"
|
|
#include "eedebug.h"
|
|
|
|
void __attribute__((noreturn)) eeload_start() {
|
|
void (*entry)();
|
|
__puts("EELOAD start\n");
|
|
|
|
__printf("about to SifInitRpc(0)\n");
|
|
SifInitRpc(0);
|
|
__printf("done rpc\n");
|
|
|
|
entry = (void (*)())loadElfFile("INTRO");
|
|
entry();
|
|
|
|
entry = (void (*)())loadElfFile("LOADER");
|
|
entry();
|
|
|
|
for (;;);
|
|
}
|
|
|
|
void Kmemcpy(void *dest, const void *src, int n) {
|
|
const u8 *s = (u8*)src;
|
|
u8 *d = (u8*)dest;
|
|
|
|
while (n) {
|
|
*d++ = *s++; n--;
|
|
}
|
|
}
|
|
|