rellermeyer / course_os

CS 439 course OS
BSD 3-Clause "New" or "Revised" License
38 stars 26 forks source link

Exception Handler #7

Closed rellermeyer closed 4 years ago

rellermeyer commented 10 years ago

We need an exception handler set up.

ebear commented 10 years ago

This seems like it would help for anyone working on this. Part 2 in particular

http://www.state-machine.com/arm/Building_bare-metal_ARM_with_GNU.pdf

EDIT: After reading this for way to many hours, I realized that most of this is done for us by u-boot :(

ebear commented 10 years ago

Does anyone know how to set the branch instructions in the exception vector table so that they branch to our exception handlers when we write them?

ARM has an example here http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dai0179b/CHDHCEDC.html but I can't really make sense of it. I also don't know what a scatter file is.

rellermeyer commented 10 years ago

I think the last reference does not apply because it is for a Cortex ARM (those are different animals).

You might get some inspiration from this slide deck: http://www.cs.ucr.edu/~amitra/context_switch/extra/04_swi.ppt

jdonszelmann commented 4 years ago

We set up exception handlers at address 0xfff00000 (High vectors). Working like a charm. Closing