mirror of https://github.com/zeldaret/tp.git
49 lines
893 B
C
49 lines
893 B
C
//
|
|
// Generated By: dol2asm
|
|
// Translation Unit: OSSync
|
|
//
|
|
|
|
#include "dolphin/os/OSSync.h"
|
|
#include "dol2asm.h"
|
|
#include "dolphin/types.h"
|
|
|
|
//
|
|
// External References:
|
|
//
|
|
|
|
SECTION_INIT void memcpy();
|
|
void DCFlushRangeNoSync();
|
|
void ICInvalidateRange();
|
|
|
|
//
|
|
// Declarations:
|
|
//
|
|
|
|
/* 80340A20-80340A3C 33B360 001C+00 1/1 0/0 0/0 .text SystemCallVector */
|
|
static asm void SystemCallVector(void) {
|
|
// clang-format off
|
|
nofralloc
|
|
|
|
mfspr r9, 0x3F0
|
|
ori r10, r9, 8
|
|
mtspr 0x3F0, r10
|
|
isync
|
|
sync
|
|
mtspr 0x3F0, r9
|
|
rfi
|
|
|
|
entry __OSSystemCallVectorEnd
|
|
nop
|
|
// clang-format on
|
|
}
|
|
|
|
/* 80340A40-80340AA4 33B380 0064+00 0/0 1/1 0/0 .text __OSInitSystemCall */
|
|
#pragma push
|
|
#pragma optimization_level 0
|
|
#pragma optimizewithasm off
|
|
asm void __OSInitSystemCall(void) {
|
|
nofralloc
|
|
#include "asm/dolphin/os/OSSync/__OSInitSystemCall.s"
|
|
}
|
|
#pragma pop
|