Skip to content

Exception handlers not working, except for Data Abort #471

Description

@TuxSH

All the addresses in installHandlers are off by 4.

According to bootROM (rom:0 being of course at address 0xffff0000):

ROM:00000004                 B               sub_9C # undefined instruction

ROM:0000009C ; =============== S U B R O U T I N E =======================================
ROM:0000009C
ROM:0000009C ; Attributes: thunk
ROM:0000009C
ROM:0000009C sub_9C                                  ; CODE XREF: sub_0+4�j
ROM:0000009C                 LDR             PC, =0x8000018
ROM:0000009C ; End of function sub_9C
ROM:0000009C
ROM:0000009C ; ---------------------------------------------------------------------------
ROM:000000A0 off_A0          DCD 0x8000018           ; DATA XREF: sub_9C�r
ROM:000000A4
ROM:000000A4 ; =============== S U B R O U T I N E =======================================

thus 0x8000018 should contain 0xe51ff004 (ldr pc, [pc, #-4]) and 0x800001C handleInst, etc.

You can trigger a prefetch abort using bkpt 1 for example.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions