68040 Exception Stack Frames

Corrected bus (access) and address exception handling for the '040 to properly read the stack frames.
This commit is contained in:
Peter Weingartner 2022-02-07 20:24:21 -05:00
parent 1b325e95a7
commit a1fd81148f
2 changed files with 5 additions and 5 deletions

View file

@ -295,8 +295,8 @@ _handle_bus_err:
lea _panic_pc,a1 lea _panic_pc,a1
lea _panic_address,a2 lea _panic_address,a2
move.w #2,(a0) move.w #2,(a0)
move.l (10,a7),(a1) move.l (2,a7),(a1)
move.l (2,a7),(a2) move.l (8,a7),(a2)
bra call_panic bra call_panic
_handle_addr_err: _handle_addr_err:
@ -304,8 +304,8 @@ _handle_addr_err:
lea _panic_pc,a1 lea _panic_pc,a1
lea _panic_address,a2 lea _panic_address,a2
move.w #3,(a0) move.w #3,(a0)
move.l (10,a7),(a1) move.l (2,a7),(a1)
move.l (2,a7),(a2) move.l (8,a7),(a2)
bra call_panic bra call_panic
_handle_inst_err: _handle_inst_err:

View file

@ -7,6 +7,6 @@
#define VER_MAJOR 0 #define VER_MAJOR 0
#define VER_MINOR 2 #define VER_MINOR 2
#define VER_BUILD 5 #define VER_BUILD 6
#endif #endif