Reserved Instruction exception

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

Reserved Instruction exception

Post by evilo »

while trying to make lua 5.1 running on the ps2, i got this exception
EE Exception handler: Reserved instruction exception

Cause 70008028 BadVaddr 0000000c Status 70030c13 EPC 00100764
I dumped the elf and have at the following instructions at the specified EPC :
100750: 24c5004c addiu a1,a2,76
100754: 00a0382d move a3,a1
100758: 8c820004 lw v0,4(a0)
10075c: 8c430000 lw v1,0(v0)
100760: 24020005 li v0,5
100764: 8c64000c lw a0,12(v1)
100768: aca20004 sw v0,4(a1)
10076c: 1000ffd0 b 1006b0 <index2adr+0x30>
100770: acc4004c sw a0,76(a2)
100774: 00000000 nop
can anyone help me with this ? I'm bit confused and lost with the exception type...

[EDIT] Solved ! in my interpreter I was loading 2 times the io library.. (bad cut/paste), seems the the EE doesn't like it anyway !
cheriff
Regular
Posts: 258
Joined: Wed Jun 23, 2004 5:35 pm
Location: Sydney.au

Post by cheriff »

Also (mainly for anyone else who finds this and is looking for a solution), on IRC recently there was a dicussion about a Reserved instruction exception was thrown. This was later found to really be a NULL pointer dereference...

Just FYI, something to look out for future reference.
Damn, I need a decent signature!
User avatar
evilo
Posts: 230
Joined: Thu Apr 22, 2004 8:40 pm
Contact:

Post by evilo »

thanks for the info :)
Post Reply