diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-30 18:28:34 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2001-10-30 18:28:34 +0000 |
commit | 6358483db00ba2edfb9002ceb026d84f4941f4d8 (patch) | |
tree | c226ea19282a312dd127bbada2edeeb98f69ff75 /c/src/librdbg/src/m68k/rdbg_cpu_asm.S | |
parent | 2001-10-30 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-6358483db00ba2edfb9002ceb026d84f4941f4d8.tar.bz2 |
2001-10-30 Victor V. Vengerov <vvv@oktet.ru>
* src/m68k/rdbg_cpu_asm.S: Now compiles on ColdFire.
Diffstat (limited to 'c/src/librdbg/src/m68k/rdbg_cpu_asm.S')
-rw-r--r-- | c/src/librdbg/src/m68k/rdbg_cpu_asm.S | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/c/src/librdbg/src/m68k/rdbg_cpu_asm.S b/c/src/librdbg/src/m68k/rdbg_cpu_asm.S index bd2d982943..7a91300282 100644 --- a/c/src/librdbg/src/m68k/rdbg_cpu_asm.S +++ b/c/src/librdbg/src/m68k/rdbg_cpu_asm.S @@ -116,7 +116,11 @@ SYM (excHandler): lea a0@(2),a0 | skip vector #endif lea a0@(6),a0 | a0 = orig sp +#if ( M68K_COLDFIRE_ARCH == 0 ) cmpiw #3,d0 | bus error or address error ? +#else + cmpi.l #3,d0 +#endif bgt 1f | if >3 then normal exc #if ( M68K_HAS_VBR == 1 ) lea a1@(2*29),a0 @@ -132,7 +136,11 @@ SYM (excHandler): movel d0,a7@ | vecnum movel d1,a7@(4) | sr movel a1@(PC_OFFSET),d1 | d1 = pc +#if ( M68K_COLDFIRE_ARCH == 0 ) cmpiw #47,d0 | trap #15, breakpoint? +#else + cmpil #47,d0 | trap #15, breakpoint? +#endif bne 2f subql #2,d1 | real PC is at trap insn 2: movel d1,a7@(8) | store pc to exframe struct |