Patent · US Expired

Method and apparatus for providing and handling traps

US6253317A · kind A · utility

32Cited by
13References
54Claims
0Family size

Assignee

Inventors

Key dates

Filing dateJan 9, 1997
Grant dateJun 26, 2001
Priority date
Expiry dateJan 9, 2017

Classification

  • Technology area (CPC G)Physics
  • CPC primaryG06F9/4484
  • WIPO fieldComputer technology
  • WIPO sectorElectrical engineering

Abstract

A computer program or a computer process is provided by replacing a native computer instruction with a trapping computer instruction which is the size of the native computer instruction and which, when executed, causes a trap to the kernel. A trap handler in the kernel determines that the inserted trapping computer instruction caused the trap and transfers control to a user trap handler. The user trap handler maps the trap site to a patch of computer instructions. When the trapping computer instruction is executed, the trap handler transfers control from the kernel to the user trap handler which in turn transfers control to the patch. Native computer instructions in sufficient proximity to corresponding patches of computer instructions may be replaced with branching computer instructions of the size of the native computer instruction and which transfer control to those corresponding patches. Other native computer instructions are replaced with trapping computer instructions which transfer control to corresponding patches through traps to the kernel. Unanticipated traps may be handled by mapping all trap sites other than those corresponding to inserted trapping computer instructions…

Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.