Class INTs
INTs (INTerruptS) class.
Inheritance
Inherited Members
Namespace: Cosmos.Core
Assembly: Cosmos.Core.dll
Syntax
public class INTs
Fields
| Improve this Doc View SourceGeneralProtectionFault
General protection fault IRQ delegate.
Declaration
public static INTs.IRQDelegate GeneralProtectionFault
Field Value
Type | Description |
---|---|
INTs.IRQDelegate |
Methods
| Improve this Doc View SourceDummy()
Dummy function, used by the bootstrap.
Declaration
public static void Dummy()
Remarks
This is to trick IL2CPU to compile it in.
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_00(ref INTs.IRQContext)
Divide By Zero Exception.
Declaration
public static void HandleInterrupt_00(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_01(ref INTs.IRQContext)
Debug Exception.
Declaration
public static void HandleInterrupt_01(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_02(ref INTs.IRQContext)
Non Maskable Interrupt Exception.
Declaration
public static void HandleInterrupt_02(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_03(ref INTs.IRQContext)
Breakpoint Exception.
Declaration
public static void HandleInterrupt_03(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_04(ref INTs.IRQContext)
Into Detected Overflow Exception.
Declaration
public static void HandleInterrupt_04(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_05(ref INTs.IRQContext)
Out of Bounds Exception.
Declaration
public static void HandleInterrupt_05(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_06(ref INTs.IRQContext)
Invalid Opcode.
Declaration
public static void HandleInterrupt_06(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_07(ref INTs.IRQContext)
No Coprocessor Exception.
Declaration
public static void HandleInterrupt_07(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_08(ref INTs.IRQContext)
Double Fault Exception.
Declaration
public static void HandleInterrupt_08(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_09(ref INTs.IRQContext)
Coprocessor Segment Overrun Exception.
Declaration
public static void HandleInterrupt_09(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_0A(ref INTs.IRQContext)
Bad TSS Exception.
Declaration
public static void HandleInterrupt_0A(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_0B(ref INTs.IRQContext)
Segment Not Present.
Declaration
public static void HandleInterrupt_0B(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_0C(ref INTs.IRQContext)
Stack Fault Exception.
Declaration
public static void HandleInterrupt_0C(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_0D(ref INTs.IRQContext)
General Protection Fault.
Declaration
public static void HandleInterrupt_0D(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_0E(ref INTs.IRQContext)
Page Fault Exception.
Declaration
public static void HandleInterrupt_0E(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_0F(ref INTs.IRQContext)
Unknown Interrupt Exception.
Declaration
public static void HandleInterrupt_0F(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_10(ref INTs.IRQContext)
x87 Floating Point Exception.
Declaration
public static void HandleInterrupt_10(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_11(ref INTs.IRQContext)
Alignment Exception.
Declaration
public static void HandleInterrupt_11(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_12(ref INTs.IRQContext)
Machine Check Exception.
Declaration
public static void HandleInterrupt_12(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_13(ref INTs.IRQContext)
SIMD Floating Point Exception.
Declaration
public static void HandleInterrupt_13(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
Exceptions
Type | Condition |
---|---|
System.IndexOutOfRangeException | Thrown on fatal error, contact support. |
System.OverflowException | Thrown on fatal error, contact support. |
HandleInterrupt_20(ref INTs.IRQContext)
IRQ 0 - System timer. Reserved for the system. Cannot be changed by a user.
Declaration
public static void HandleInterrupt_20(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
HandleInterrupt_21(ref INTs.IRQContext)
IRQ 1 - Keyboard. Reserved for the system. Cannot be altered even if no keyboard is present or needed.
Declaration
public static void HandleInterrupt_21(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
HandleInterrupt_22(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_22(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_23(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_23(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_24(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_24(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_25(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_25(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_26(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_26(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_27(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_27(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_28(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_28(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_29(ref INTs.IRQContext)
IRQ 09 - (Added for AMD PCNet network card).
Declaration
public static void HandleInterrupt_29(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
HandleInterrupt_2A(ref INTs.IRQContext)
IRQ 10 - (Added for VIA Rhine network card).
Declaration
public static void HandleInterrupt_2A(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
HandleInterrupt_2B(ref INTs.IRQContext)
IRQ 11 - (Added for RTL8139 network card).
Declaration
public static void HandleInterrupt_2B(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
HandleInterrupt_2C(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_2C(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_2D(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_2D(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_2E(ref INTs.IRQContext)
IRQ 14 - Primary IDE. If no Primary IDE this can be changed.
Declaration
public static void HandleInterrupt_2E(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
HandleInterrupt_2F(ref INTs.IRQContext)
IRQ 15 - Secondary IDE.
Declaration
public static void HandleInterrupt_2F(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | IRQ context. |
HandleInterrupt_30(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_30(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_35(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_35(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_40(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_40(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_41(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_41(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_42(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_42(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_43(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_43(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_44(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_44(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_45(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_45(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_46(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_46(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_47(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_47(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_48(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_48(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_49(ref INTs.IRQContext)
Declaration
public static void HandleInterrupt_49(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext |
HandleInterrupt_Default(ref INTs.IRQContext)
Handle default interrupt.
Declaration
public static void HandleInterrupt_Default(ref INTs.IRQContext aContext)
Parameters
Type | Name | Description |
---|---|---|
INTs.IRQContext | aContext | A IEQ context. |
SetIntHandler(Byte, INTs.IRQDelegate)
Set interrupt handler.
Declaration
public static void SetIntHandler(byte aIntNo, INTs.IRQDelegate aHandler)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | aIntNo | Interrupt index. |
INTs.IRQDelegate | aHandler | IRQ handler. |
SetIrqHandler(Byte, INTs.IRQDelegate)
Set IRQ handler.
Declaration
public static void SetIrqHandler(byte aIrqNo, INTs.IRQDelegate aHandler)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | aIrqNo | IRQ index. |
INTs.IRQDelegate | aHandler | IRQ handler. |
SetIRQMaskState(Byte, Boolean)
Masks or Un-Masks an interupt address. Source: https://wiki.osdev.org/8259_PIC
Declaration
public static void SetIRQMaskState(byte aIRQLine, bool aDoMask)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | aIRQLine | Interupt to unmask. |
System.Boolean | aDoMask | True = Mask, False = Unmask. |
Events
| Improve this Doc View SourceInterrupt30
Declaration
public static event INTs.IRQDelegate Interrupt30
Event Type
Type | Description |
---|---|
INTs.IRQDelegate |