mirror of https://github.com/PrimeDecomp/prime.git
Use __ppc_linker.h in start.c
This commit is contained in:
parent
eec621aacc
commit
1c46c7161e
|
@ -35,7 +35,6 @@ typedef struct __eti_init_info {
|
||||||
unsigned long code_size;
|
unsigned long code_size;
|
||||||
} __eti_init_info;
|
} __eti_init_info;
|
||||||
|
|
||||||
/* TODO: Fix this once we can link with generated symbols */
|
|
||||||
__declspec(section ".init") extern __eti_init_info _eti_init_info[];
|
__declspec(section ".init") extern __eti_init_info _eti_init_info[];
|
||||||
__declspec(section ".init") extern const char _f_init_rom[];
|
__declspec(section ".init") extern const char _f_init_rom[];
|
||||||
__declspec(section ".init") extern char _f_init[];
|
__declspec(section ".init") extern char _f_init[];
|
|
@ -41,19 +41,4 @@ __declspec(section ".init") extern char _stack_addr[];
|
||||||
__declspec(section ".init") extern char _SDA_BASE_[];
|
__declspec(section ".init") extern char _SDA_BASE_[];
|
||||||
__declspec(section ".init") extern char _SDA2_BASE_[];
|
__declspec(section ".init") extern char _SDA2_BASE_[];
|
||||||
|
|
||||||
typedef struct __rom_copy_info {
|
|
||||||
char* rom;
|
|
||||||
char* addr;
|
|
||||||
unsigned int size;
|
|
||||||
} __rom_copy_info;
|
|
||||||
|
|
||||||
__declspec(section ".init") extern __rom_copy_info _rom_copy_info[];
|
|
||||||
|
|
||||||
typedef struct __bss_init_info {
|
|
||||||
char* addr;
|
|
||||||
unsigned int size;
|
|
||||||
} __bss_init_info;
|
|
||||||
|
|
||||||
__declspec(section ".init") extern __bss_init_info _bss_init_info[];
|
|
||||||
|
|
||||||
#endif // _DOLPHIN__START
|
#endif // _DOLPHIN__START
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include "dolphin/__start.h"
|
#include "dolphin/__start.h"
|
||||||
|
#include "__ppc_eabi_linker.h"
|
||||||
|
|
||||||
void __check_pad3(void) {
|
void __check_pad3(void) {
|
||||||
if ((Pad3Button & 0x0eef) == 0x0eef) {
|
if ((Pad3Button & 0x0eef) == 0x0eef) {
|
||||||
|
|
Loading…
Reference in New Issue