mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-05-13 21:11:19 +00:00
Use __ppc_linker.h in start.c
Former-commit-id: 1c46c7161e224a23799dd0c3d757762b05492444
This commit is contained in:
parent
1706935abb
commit
f4d549e0b9
@ -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…
x
Reference in New Issue
Block a user