fix exit sequence

This commit is contained in:
Dave Murphy 2020-06-01 15:03:36 +01:00
parent e096dad4c5
commit b168032339
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,6 @@ unload:
lwz 3, 0xC(1)
lwz 4, 0x10(1)
bl rpl_entry
bl __fini_wut
addi 1, 1, 0x14
b exit

View File

@ -14,6 +14,5 @@ __rpx_start:
lwz 3, 0xC(1)
lwz 4, 0x10(1)
bl main
bl __fini_wut
addi 1, 1, 0x14
b exit

View File

@ -2,6 +2,7 @@
#include <coreinit/exit.h>
void(*__wut_exit)(int rc);
extern void __fini_wut(void);
int __syscall_lock_init(int *lock, int recursive) {
return __wut_lock_init(lock,recursive);
@ -19,7 +20,8 @@ int __syscall_lock_acquire(int *lock) {
return __wut_lock_acquire(lock);
}
void __syscall_exit(int rc) {
void __syscall_exit(int rc) {
__fini_wut();
__wut_exit(rc);
}