MicroSparc trap handling

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
carbonBased

MicroSparc trap handling

Post by carbonBased »

Does anybody have *ANY* information on the MicroSparc architecture? In particular, how to handle traps?

I've got a Scientific Atlanta settop box which uses a MicroSparc processor. I've seen it generate trap codes from 0 to 9 (at least). I'd like to hook these traps in order to run my own function upon any trap.

The above, alone, would be great info to have.

Above that, if someone actually happened to have a handler that also printed out the stacktrace, that would be golden! I'd imagine I can just take the current address of the last argument of the reset handling function and either increment and decrement the pointer while printing... but I don't know much about this architecture. Are there privelege levels? If so, I might have to somehow obtain a pointer to a stack from a different privelege level...

Any information would be greatly appreciated!

Thanks,
Jeff
User avatar
kataklinger
Member
Member
Posts: 381
Joined: Fri Nov 04, 2005 12:00 am
Location: Serbia

Re:MicroSparc trap handling

Post by kataklinger »

The Sparc Architecture Manuals: http://www.nondot.org/sabre/os/articles ... hitecture/

If that's what are you looking for.
Post Reply