summaryrefslogtreecommitdiffstats
path: root/firmware/target/mips/ingenic_jz47xx/crt0.S
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-09 23:31:38 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-08-09 23:31:38 +0000
commit447ffc8bf89fde97de2d11023e77887bcb7ffb91 (patch)
tree20f124d12ccf43a6f27072770e2c32b488b74950 /firmware/target/mips/ingenic_jz47xx/crt0.S
parentee398634595e30978295d75706d2316a02975398 (diff)
downloadrockbox-447ffc8bf89fde97de2d11023e77887bcb7ffb91.tar.gz
rockbox-447ffc8bf89fde97de2d11023e77887bcb7ffb91.tar.bz2
rockbox-447ffc8bf89fde97de2d11023e77887bcb7ffb91.zip
* Add interrupt handling (but still not working)
* Clean up linker script and bootup routines git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18229 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/crt0.S')
-rw-r--r--firmware/target/mips/ingenic_jz47xx/crt0.S19
1 files changed, 9 insertions, 10 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/crt0.S b/firmware/target/mips/ingenic_jz47xx/crt0.S
index 2dff67c79f..3d2308a578 100644
--- a/firmware/target/mips/ingenic_jz47xx/crt0.S
+++ b/firmware/target/mips/ingenic_jz47xx/crt0.S
@@ -45,7 +45,7 @@
.extern system_main
.global _start
- .section .resetvectors,"ax",%progbits
+ .section .init.text
.set noreorder
.set noat
@@ -125,12 +125,12 @@ _init_stack_loop:
nop
- .section .vectors,"ax",%progbits
- .extern exception_handler
+ .section .vectors, "ax", %progbits
+ .extern real_exception_handler
.global except_common_entry
.type except_common_entry,@function
except_common_entry:
- la k0, exception_handler
+ la k0, real_exception_handler
jr k0
nop
nop
@@ -138,10 +138,10 @@ except_common_entry:
.extern _int
.extern _exception
- .global exception_handler
- .type exception_handler,@function
+ .global real_exception_handler
+ .type real_exception_handler,@function
.set noreorder
-exception_handler:
+real_exception_handler:
addiu sp, -0x80
@@ -257,15 +257,14 @@ _int:
eret # Exception Return
nop
- .extern _except_handler
+ .extern _exception_handler
.global _exception
.type _exception,@function
_exception:
move a0, sp
mfc0 a1, C0_CAUSE # C0_CAUSE of last exception
mfc0 a2, C0_EPC # Exception Program Counter
- la k0, except_handler
+ la k0, exception_handler
jr k0
nop
-
.set reorder