Skip to content

Commit

Permalink
Update exceptions.md
Browse files Browse the repository at this point in the history
  • Loading branch information
flip111 authored Feb 17, 2019
1 parent ccfe42d commit 1e9a1a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/start/exceptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ ResetTrampoline:
800094c: b #-0x4 <ResetTrampoline+0xa>
```

You'll see that a load operation (`ldr r0, [r0]` ) caused the exception and that
the value of the register `r0` was `0x3fff_fffe` at that time. This value
matches the `r0` field of `ExceptionFrame`.
You can lookup the value of the program counter `0x0800094a` in the dissassembly.
You'll see that a load operation (`ldr r0, [r0]` ) caused the exception.
The `r0` field of `ExceptionFrame` will tell you the value of register `r0`
was `0x3fff_fffe` at that time.

0 comments on commit 1e9a1a7

Please sign in to comment.