Method and apparatus for fully restoring a program context follo

Electrical computers and digital processing systems: multicomput – Computer-to-computer data routing – Least weight routing

Patent

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

710260, G06F 946

Patent

active

059874953

ABSTRACT:
A method and apparatus for fully restoring the context of a user program, including program status word (PSW) and CPU register contents, following an asynchronous interrupt. Upon the occurrence of an asynchronous interrupt event, control is transferred from the normally executing part of the user program to an interrupt handler of the operating system kernel. The kernel interrupt handler saves the contents of the CPU registers and PSW as they existed at the time of the interrupt in a save area associated with the user program before transferring control to a signal catcher routine of the user program. When it has finished handling the interrupt, the signal catcher routine restores the previous state of program execution as it existed before the interrupt by storing the address of the save area in a selected register (which may be a general register/access register pair), restoring the contents of the registers other than the selected register containing the address of the save area, and then restoring the contents of the PSW and selected register by using a new Resume Program (RP) instruction. The RP instruction contains an operand field specifying through the selected register the base address of the save area together with offset fields specifying the offsets of the saved contents of the PSW and selected register relative to the beginning of the save area. Upon decoding an RP instruction, the CPU executing the instruction adds the displacement to the base address contained in the specified register to form the beginning address of the save area, to which it adds the specified offsets to access the saved PSW and selected register contents. The current PSW and selected register contents are then restored with the saved contents to fully restore the previous program context and return control to the instruction being executed at the point of interrupt. To ensure system integrity, only those fields of the PSW are restored that could have otherwise been restored by a program operating in problem state.

REFERENCES:
patent: 4912628 (1990-03-01), Briggs
patent: 5155853 (1992-10-01), Mitsuhira et al.
patent: 5161226 (1992-11-01), Wainer
patent: 5375230 (1994-12-01), Fujimori
patent: 5390329 (1995-02-01), Gaertner et al.
patent: 5390332 (1995-02-01), Golson
patent: 5428779 (1995-06-01), Allegrucci et al.
patent: 5515538 (1996-05-01), Kleiman
patent: 5761492 (1998-06-01), Fernando et al.
patent: 5790872 (1998-08-01), Nozue et al.
IBM Technical Disclosure Bulletin, vol. 32, No. 6B--Nov. 1989 "Deterministic Context Switching of Registers" pp. 70-73.
IBM Technical Disclosure Bulletin, vol. 33, No. 3B, Aug. 1990 "Technique To Improve Context . . . In a CPU", pp. 472-473.
Enterprise Systems Architecture/390 Manual--Principles of Operation SA22-7201-02.

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Method and apparatus for fully restoring a program context follo does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Method and apparatus for fully restoring a program context follo, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and apparatus for fully restoring a program context follo will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-1337784

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.