diff --git a/Makefile b/Makefile index 0300c96..64d2bed 100644 --- a/Makefile +++ b/Makefile @@ -140,8 +140,8 @@ $(OUTPUT).elf: $(OFILES) #--------------------------------------------------------------------------------- %.elf: link.ld $(OFILES) @echo "linking ... $(TARGET).elf" - $(Q)$(LD) -n -T $^ $(LDFLAGS) -o ../$(BUILD_DBG).elf $(LIBPATHS) $(LIBS) - $(Q)$(OBJCOPY) -S -R .comment -R .gnu.attributes ../$(BUILD_DBG).elf $@ + @$(LD) -n -T $^ $(LDFLAGS) -o ../$(BUILD_DBG).elf $(LIBPATHS) $(LIBS) + @$(OBJCOPY) -S -R .comment -R .gnu.attributes ../$(BUILD_DBG).elf $@ #--------------------------------------------------------------------------------- %.a: diff --git a/src/dynamic_libs/coreinit.h b/src/dynamic_libs/coreinit.h index 095e746..99ec473 100644 --- a/src/dynamic_libs/coreinit.h +++ b/src/dynamic_libs/coreinit.h @@ -18,7 +18,7 @@ extern "C" { #define os_usleep(usecs) OSSleepTicks(OSMicrosecondsToTicks(usecs)) #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 OSFatal ((void (*)(char* msg))0x01031618) diff --git a/src/kernel/kernel_utils.c b/src/kernel/kernel_utils.c index 68ee15b..87abb1b 100644 --- a/src/kernel/kernel_utils.c +++ b/src/kernel/kernel_utils.c @@ -153,11 +153,11 @@ uint32_t __attribute__ ((noinline)) kern_read(const void *addr) void PatchSyscall(int index, uint32_t addr) { //DEBUG_FUNCTION_LINE("Patching Syscall 0x%02X\n",index); - kern_write(KERN_SYSCALL_TBL1 + index * 4, addr); - kern_write(KERN_SYSCALL_TBL2 + index * 4, addr); - kern_write(KERN_SYSCALL_TBL3 + index * 4, addr); - kern_write(KERN_SYSCALL_TBL4 + index * 4, addr); - kern_write(KERN_SYSCALL_TBL5 + index * 4, addr); + kern_write((void *) (KERN_SYSCALL_TBL1 + index * 4), addr); + kern_write((void *) (KERN_SYSCALL_TBL2 + index * 4), addr); + kern_write((void *) (KERN_SYSCALL_TBL3 + index * 4), addr); + kern_write((void *) (KERN_SYSCALL_TBL4 + index * 4), addr); + kern_write((void *) (KERN_SYSCALL_TBL5 + index * 4), addr); } void KernelReadPTE(uint32_t outputAddr, int32_t length) {