Use __ppc_linker.h in start.c

Former-commit-id: 1c46c7161e
This commit is contained in:
Phillip Stephens 2022-10-11 08:28:49 -07:00
parent 1706935abb
commit f4d549e0b9
3 changed files with 1 additions and 16 deletions

View File

@ -35,7 +35,6 @@ typedef struct __eti_init_info {
unsigned long code_size;
} __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 const char _f_init_rom[];
__declspec(section ".init") extern char _f_init[];

View File

@ -41,19 +41,4 @@ __declspec(section ".init") extern char _stack_addr[];
__declspec(section ".init") extern char _SDA_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

View File

@ -1,4 +1,5 @@
#include "dolphin/__start.h"
#include "__ppc_eabi_linker.h"
void __check_pad3(void) {
if ((Pad3Button & 0x0eef) == 0x0eef) {