Method and apparatus for performing a trap operation in an information handling system
US6336184B1 · kind B1 · utility
Assignee
Inventors
Key dates
| Filing date | Aug 14, 1998 |
| Grant date | Jan 1, 2002 |
| Priority date | — |
| Expiry date | Aug 14, 2018 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F8/78
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
A central processing unit of an information handling system is provided with a Trap instruction to facilitate transfer of control from a user program to a trap program. A dispatchable unit control block (DUCT) of the CPU is loaded with the address of a trap control block, which in turn contains the addresses of a trap save area and a trap program. The user program is provided with Trap instructions at the desired transfer points. Upon decoding a Trap instruction in the user program, the CPU saves state information from the program status word (PSW), general registers and access registers in the designated trap save area, loads the address of the trap control block into a general register, and copies the address of the trap program into the instruction address field of the PSW to transfer control to the trap program. Upon completion of execution, the trap program may issue a Resume Program (RP) instruction to restore the previously saved state information to return control to the user program.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.