×

Mechanism for using common code to handle hardware interrupts in multiple processor modes

  • US 5,596,755 A
  • Filed: 05/08/1995
  • Issued: 01/21/1997
  • Est. Priority Date: 11/03/1992
  • Status: Expired due to Term
First Claim
Patent Images

1. In a data processing system having a processor for executing instructions and operating in different processor modes, a storage for storing information and an interrupt handler for handling a type of interrupt, a method of handling interrupts comprising the steps of:

  • a) storing an indicator of a current processor mode in the storage;

    b) storing information to be used by the interrupt handler when run in a first processor mode in the storage and storing information to be used by the interrupt handler when run in a second processor mode in the storage;

    c) receiving an interrupt of the type handled by the interrupt handler responds;

    d) in response to receiving the interrupt, determining what the current processor mode is by examining the indicator in storage;

    e) running the interrupt handler using the stored information for the first processor mode in response to determining that the current processor mode is the first mode to avoid switching processor modes; and

    f) running the interrupt handler using the stored information for the second processor mode in response to determining that the current processor mode is the second processor mode to avoid switching processor modes.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×