caoss.simulator.os.interrupts

## Class SysCallInterruptHandler

- java.lang.Object
- - caoss.simulator.os.interrupts.SysCallInterruptHandler

- All Implemented Interfaces:
    InterruptHandler

      public class SysCallInterruptHandler
      extends java.lang.Object
      implements InterruptHandler

  The interrupt handler for system calls
  Author:
    Herve Paulino

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SysCallInterruptHandler()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `handle(CPUCore cpuCore)` The handler implementation.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SysCallInterruptHandler

          public SysCallInterruptHandler()

  - ### Method Detail

    - #### handle

          public void handle(CPUCore cpuCore)
                      throws java.lang.Exception

      The handler implementation. It inspects `SysCallTable` to invoke the handler associated to the system call number retrieved from register(0)
      Specified by:
        `handle` in interface `InterruptHandler`
      Parameters:
        `cpuCore` - The core where the interrupt is being handled
      Throws:
        `java.lang.Exception`