blob: 4ee2a7df04d54d007313cac0d15dfee832101889 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
//
// __ppc_eabi_init
//
#include "dol2asm.h"
#include "dolphin/base/PPCArch.h"
#ifdef __cplusplus
extern "C" {
#endif
//
// Forward References:
//
void __init_user();
void __init_cpp();
void _ExitProcess();
//
// External References:
//
typedef void (*voidfunctionptr)(); // pointer to function returning void
SECTION_CTORS10 extern voidfunctionptr __init_cpp_exceptions_reference[];
/* 80342B78-80342B98 33D4B8 0020+00 0/0 1/1 0/0 .text __init_user */
void __init_user(void) {
__init_cpp();
}
/* 80342B98-80342BEC 33D4D8 0054+00 1/1 0/0 0/0 .text __init_cpp */
#pragma peephole off
void __init_cpp(void) {
/**
* call static initializers
*/
voidfunctionptr* constructor;
for (constructor = __init_cpp_exceptions_reference; *constructor; constructor++) {
(*constructor)();
}
}
#pragma peephole reset
/* 80342BEC-80342C0C 33D52C 0020+00 0/0 2/2 0/0 .text _ExitProcess */
void _ExitProcess(void) {
PPCHalt();
}
#ifdef __cplusplus
}
#endif
|