mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-09 06:30:39 +01:00
fix exit sequence
This commit is contained in:
parent
e096dad4c5
commit
b168032339
@ -28,7 +28,6 @@ unload:
|
|||||||
lwz 3, 0xC(1)
|
lwz 3, 0xC(1)
|
||||||
lwz 4, 0x10(1)
|
lwz 4, 0x10(1)
|
||||||
bl rpl_entry
|
bl rpl_entry
|
||||||
bl __fini_wut
|
|
||||||
addi 1, 1, 0x14
|
addi 1, 1, 0x14
|
||||||
b exit
|
b exit
|
||||||
|
|
||||||
|
@ -14,6 +14,5 @@ __rpx_start:
|
|||||||
lwz 3, 0xC(1)
|
lwz 3, 0xC(1)
|
||||||
lwz 4, 0x10(1)
|
lwz 4, 0x10(1)
|
||||||
bl main
|
bl main
|
||||||
bl __fini_wut
|
|
||||||
addi 1, 1, 0x14
|
addi 1, 1, 0x14
|
||||||
b exit
|
b exit
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
#include <coreinit/exit.h>
|
#include <coreinit/exit.h>
|
||||||
|
|
||||||
void(*__wut_exit)(int rc);
|
void(*__wut_exit)(int rc);
|
||||||
|
extern void __fini_wut(void);
|
||||||
|
|
||||||
int __syscall_lock_init(int *lock, int recursive) {
|
int __syscall_lock_init(int *lock, int recursive) {
|
||||||
return __wut_lock_init(lock,recursive);
|
return __wut_lock_init(lock,recursive);
|
||||||
@ -19,7 +20,8 @@ int __syscall_lock_acquire(int *lock) {
|
|||||||
return __wut_lock_acquire(lock);
|
return __wut_lock_acquire(lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
void __syscall_exit(int rc) {
|
void __syscall_exit(int rc) {
|
||||||
|
__fini_wut();
|
||||||
__wut_exit(rc);
|
__wut_exit(rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user