User:Johnburger/Demo/Exec/Ints/NoSeg

From OSDev Wiki
Jump to: navigation, search

Install the simple No Segment handler, which doesn't require its own context to run.

Demo/Exec/Ints/NoSeg.inc

;
; Exec/Ints/NoSeg.inc
;
 
; This module installs an example No Segment handler.
Exec.Ints.NoSeg:
                MOV             EAX,Ints.NoSeg
                MOV             EBX,IDT.NoSeg
                MOV             CX,Selector(GDT.Ints, GDT, RPL0)
                MOV             DL,Type.Sys(Trap, DPL0, 386)
                CALL            Exec.Alloc.IDT
                RET
Personal tools
Namespaces
Variants
Actions
Navigation
About
Toolbox