mirror of
https://github.com/wiiu-env/PayloadLoaderPayload.git
synced 2024-11-15 14:35:10 +01:00
24 lines
427 B
ArmAsm
24 lines
427 B
ArmAsm
|
/*#define IMPORT(name) \
|
||
|
.global name; \
|
||
|
name: \
|
||
|
lis %r11, addr_##name@h; \
|
||
|
lwz %r11, addr_##name@l(%r11); \
|
||
|
mtctr %r11; \
|
||
|
bctr*/
|
||
|
|
||
|
#define IMPORT(name) \
|
||
|
.global name; \
|
||
|
name: \
|
||
|
lis %r11, addr_##name@h; \
|
||
|
ori %r11, %r11, addr_##name@l; \
|
||
|
lwz %r11, 0(%r11); \
|
||
|
mtctr %r11; \
|
||
|
bctr
|
||
|
|
||
|
#define IMPORT_BEGIN(lib)
|
||
|
#define IMPORT_END()
|
||
|
|
||
|
.align 2;
|
||
|
.section ".text";
|
||
|
|
||
|
#include "imports.h"
|