mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-11-25 14:16:53 +01:00
Fix some compiler warnings
This commit is contained in:
parent
8cd0367514
commit
69ed56522a
4
Makefile
4
Makefile
@ -140,8 +140,8 @@ $(OUTPUT).elf: $(OFILES)
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.elf: link.ld $(OFILES)
|
%.elf: link.ld $(OFILES)
|
||||||
@echo "linking ... $(TARGET).elf"
|
@echo "linking ... $(TARGET).elf"
|
||||||
$(Q)$(LD) -n -T $^ $(LDFLAGS) -o ../$(BUILD_DBG).elf $(LIBPATHS) $(LIBS)
|
@$(LD) -n -T $^ $(LDFLAGS) -o ../$(BUILD_DBG).elf $(LIBPATHS) $(LIBS)
|
||||||
$(Q)$(OBJCOPY) -S -R .comment -R .gnu.attributes ../$(BUILD_DBG).elf $@
|
@$(OBJCOPY) -S -R .comment -R .gnu.attributes ../$(BUILD_DBG).elf $@
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.a:
|
%.a:
|
||||||
|
@ -18,7 +18,7 @@ extern "C" {
|
|||||||
#define os_usleep(usecs) OSSleepTicks(OSMicrosecondsToTicks(usecs))
|
#define os_usleep(usecs) OSSleepTicks(OSMicrosecondsToTicks(usecs))
|
||||||
#define os_sleep(secs) OSSleepTicks(OSSecondsToTicks(secs))
|
#define os_sleep(secs) OSSleepTicks(OSSecondsToTicks(secs))
|
||||||
|
|
||||||
#define OSDynLoad_Acquire ((void (*)(char* rpl, unsigned int *handle))0x0102A3B4)
|
#define OSDynLoad_Acquire ((void (*)(const char* rpl, unsigned int *handle))0x0102A3B4)
|
||||||
#define OSDynLoad_FindExport ((void (*)(unsigned int handle, int isdata, const char *symbol, void *address))0x0102B828)
|
#define OSDynLoad_FindExport ((void (*)(unsigned int handle, int isdata, const char *symbol, void *address))0x0102B828)
|
||||||
#define OSFatal ((void (*)(char* msg))0x01031618)
|
#define OSFatal ((void (*)(char* msg))0x01031618)
|
||||||
|
|
||||||
|
@ -153,11 +153,11 @@ uint32_t __attribute__ ((noinline)) kern_read(const void *addr)
|
|||||||
|
|
||||||
void PatchSyscall(int index, uint32_t addr) {
|
void PatchSyscall(int index, uint32_t addr) {
|
||||||
//DEBUG_FUNCTION_LINE("Patching Syscall 0x%02X\n",index);
|
//DEBUG_FUNCTION_LINE("Patching Syscall 0x%02X\n",index);
|
||||||
kern_write(KERN_SYSCALL_TBL1 + index * 4, addr);
|
kern_write((void *) (KERN_SYSCALL_TBL1 + index * 4), addr);
|
||||||
kern_write(KERN_SYSCALL_TBL2 + index * 4, addr);
|
kern_write((void *) (KERN_SYSCALL_TBL2 + index * 4), addr);
|
||||||
kern_write(KERN_SYSCALL_TBL3 + index * 4, addr);
|
kern_write((void *) (KERN_SYSCALL_TBL3 + index * 4), addr);
|
||||||
kern_write(KERN_SYSCALL_TBL4 + index * 4, addr);
|
kern_write((void *) (KERN_SYSCALL_TBL4 + index * 4), addr);
|
||||||
kern_write(KERN_SYSCALL_TBL5 + index * 4, addr);
|
kern_write((void *) (KERN_SYSCALL_TBL5 + index * 4), addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void KernelReadPTE(uint32_t outputAddr, int32_t length) {
|
void KernelReadPTE(uint32_t outputAddr, int32_t length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user