Uploaded image for project: 'rcX - Operating System'
  1. rcX - Operating System
  2. RCX-475

Exceptions (DAB/PAB/UND) are not handled correctly if user handlers are registered

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V2.0.8.5
    • Fix Version/s: V2.0.8.7
    • Component/s: Kernel
    • Labels:
      None
    • Account:
      SDO rcX (SDORCX)

      Description

      All Exceptionhandlers choose the wrong handler (HalExpt_MainSwitchCode). USR Handler is called in Systemmode, while SYS handler is called for all other modes. Currently I don't see any reason why to seperate USR/SYS handler this way.

      Prefetch Abort does not work at all due to this error, as the undefined _USR handler is called, when the exception is thrown in System Mode (which is default for rcX V2 tasks).

      When Exception is thrown in user mode, it results in an undefined instruction, as the handler switches back to user mode (unpriviledged) and tries to read cp15 registers which is forbidden in this mode.

        Attachments

          Expenses

            Activity

              Status Description

                People

                • Reporter:
                  MTrensch Michael Trensch
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: