This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Acknowledge exception handler in Linux

Parents
  • Note: This was originally posted on 2nd April 2012 at http://forums.arm.com

    I'm afraid that I'm not a Linux expert, but I have a theory.

    The standard return sequence for an Undef exception puts the pc back to the instruction which triggered the Undef.  This would lead to the instruction being re-executed.

    This may sounds odd, but fits the use case for Undefs pretty well.  The common scenarios are:
    * Instruction that the task will never be able to execute (e.g. due to priviledge restrictions) - kill task
    * VFP/NEON instruction when VFP/NEON disabled - turn on VFP/NEON

    So you usually either want to re-execute the instruction or kill the task.
Reply
  • Note: This was originally posted on 2nd April 2012 at http://forums.arm.com

    I'm afraid that I'm not a Linux expert, but I have a theory.

    The standard return sequence for an Undef exception puts the pc back to the instruction which triggered the Undef.  This would lead to the instruction being re-executed.

    This may sounds odd, but fits the use case for Undefs pretty well.  The common scenarios are:
    * Instruction that the task will never be able to execute (e.g. due to priviledge restrictions) - kill task
    * VFP/NEON instruction when VFP/NEON disabled - turn on VFP/NEON

    So you usually either want to re-execute the instruction or kill the task.
Children
No data