From 0d4345a9bf2623df079c50a3bc73cbb7deca1176 Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Wed, 17 Jul 2019 11:30:07 +0800 Subject: Added C++ support, updated build instructions and makefiles, consolidated libc and libgcc (during build process), libraries now v0.12b and more --- libpsn00b/psxgpu/resetgraph.s | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'libpsn00b/psxgpu/resetgraph.s') diff --git a/libpsn00b/psxgpu/resetgraph.s b/libpsn00b/psxgpu/resetgraph.s index ff0b353..93ce185 100644 --- a/libpsn00b/psxgpu/resetgraph.s +++ b/libpsn00b/psxgpu/resetgraph.s @@ -4,6 +4,7 @@ .section .text +.set ISR_STACK_SIZE, 1024 .global ResetGraph # Resets the GPU and installs a .type ResetGraph, @function # VSync event handler @@ -306,11 +307,12 @@ _vsync_irq_callback: .type _global_isr, @function _global_isr: - - lui $a0, IOBASE # Get IRQ status .Lisr_loop: + #la $gp, _gp # Keep restoring GP since it gets + # changed elsewhere sometimes + lui $a0, IOBASE # Get IRQ status lw $v0, IMASK($a0) nop @@ -392,10 +394,11 @@ _irq_func_table: .word 0 # Global ISR hook structure +.global _custom_exit .type _custom_exit, @object _custom_exit: .word _global_isr # pc - .word _custom_exit_stack # sp + .word _custom_exit_stack+ISR_STACK_SIZE # sp .word 0 # fp .word _irq_func_table # s0 .word 0 # s1 @@ -408,10 +411,10 @@ _custom_exit: .word _gp # gp # Global ISR stack - .fill 124 -_custom_exit_stack: - .fill 4 - +# .fill 1024 +#_custom_exit_stack: +# .fill 4 +.comm _custom_exit_stack, ISR_STACK_SIZE+4 .type vsynctimeout_msg, @object vsynctimeout_msg: -- cgit v1.2.3