Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Installing exception handlers from C

2006-04-19 by c.barbaro

--- In lpc2000@yahoogroups.com, "ndhegde" <ndhegde@...> wrote:
>
> Hello,
> I am trying to understand installing exception handlers from C (Ref: 
> ARM developer guide, sec 5.3.2). 
> Could anyone please elaborate the step wherein "subtract 8 to allow 
> prefetching " is done?
> 
> Thanks
> Nikhil
>

When your instruction at address A is being processed, the next
instruction at address A+4 is already fetched so the PC is pointing to
A+8.
So if your instruction involves PC manipulation you have to take in
account of this.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.