×

Method and system for stealing interrupt vectors

  • US 8,145,819 B2
  • Filed: 06/04/2007
  • Issued: 03/27/2012
  • Est. Priority Date: 06/04/2007
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method for stealing interrupt vectors from an operating system, the computer implemented method comprising:

  • copying, by a kernel module, a plurality of custom interrupt handler extensions from the kernel module into an allocated block of memory;

    copying, by the kernel module, a plurality of operating system interrupt handlers from an interrupt vector memory location into a plurality of reserved spaces in the allocated block of memory, each of the plurality of reserved spaces is located directly after each of the plurality of custom interrupt handler extensions within the allocated block of memory so that each of the copied plurality of operating system interrupt handlers is contiguous to its corresponding custom interrupt handler extension;

    responsive to copying the plurality of operating system interrupt handlers into the plurality of reserved spaces in the allocated block of memory, copying, by the kernel module, a plurality of custom interrupt handlers from the kernel module over the plurality of operating system interrupt handlers in the interrupt vector memory location, wherein the plurality of custom interrupt handlers after being copied into the interrupt vector memory location handle interrupts received by the operating system;

    generating a kernel thread for each of one or more processing units to form a generated kernel thread for each of the one or more processing units;

    disabling, by the kernel module, external interrupts in each generated kernel thread;

    determining, by the kernel module, if a master processing unit is finished copying the plurality of custom interrupt handlers over the plurality of operating system interrupt handlers; and

    responsive to determining that the master processing unit is finished copying the plurality of custom interrupt handlers over the plurality of operating system interrupt handlers, restoring, by the kernel module, the external interrupts.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×