Changeset 48a209a in mainline


Ignore:
Timestamp:
2012-11-25T18:49:04Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab52a3e
Parents:
4f843ded
Message:

arm32, fpu: Compensate for offset in undef instruction handler.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/src/exception.c

    r4f843ded r48a209a  
    170170                fault_if_from_uspace(istate, "Undefined instruction.");
    171171                panic_badtrap(istate, exc_no, "Undefined instruction.");
     172        } else {
     173                /*
     174                 * Retry the failing instruction,
     175                 * ARM Architecture Reference Manual says on p.B1-1169
     176                 * that offset for undef instruction exception is 4
     177                 */
     178                istate->pc -= 4;
    172179        }
    173180}
Note: See TracChangeset for help on using the changeset viewer.