Permalink
Browse files

Cleanup engine

  • Loading branch information...
1 parent 7059fa8 commit 1d9809935a59e20bcec67297f727260212fc8db6 @root670 committed Jun 17, 2016
Showing with 1 addition and 13 deletions.
  1. +0 −6 engine/engine.c
  2. +1 −7 engine/engine_asm.S
View
@@ -102,12 +102,6 @@ int register_callback(void *func)
int __attribute__((section(".init"))) _init(void)
{
- ee_kmode_enter();
- //*((u32 *)(0x800002FC)) = ((syscallHook << 4) >> 6) + 0x0C000000;
- //*((u32 *)(0x800002FC)) = MAKE_JAL(&syscallHook);
- //*((u32 *)(0x800002FC)) = MAKE_JAL(0x00080000);
- ee_kmode_exit();
-
return 0;
}
View
@@ -47,7 +47,6 @@
.globl EngineHandler
.globl maxcallbacks
.globl callbacks
- .globl eh_backup
.globl CodeHandler
.globl maxcodes
@@ -154,12 +153,7 @@ EngineHandler:
ld $v0, 0x10($sp)
ld $at, 0x08($sp)
- /* call original function here */
-eh_backup:
- nop
- nop
-
- /* finally, return to normal execution */
+ /* return to normal execution */
ld $ra, 0($sp)
jr $ra
addiu $sp, 0xe0

0 comments on commit 1d98099

Please sign in to comment.