User:Johnburger/Demo/Exec/Alloc/Alloc

From OSDev Wiki
Jump to: navigation, search

You can Alloc RAM, but without a Descriptor, you've got nothing!

You can modify existing DT entries in the IDT, GDT or LDT.

You can Alloc a new DT entry in either the LDT or GDT.

Or you can Alloc a new TSS.

Demo/Exec/Alloc/Alloc.inc

;
; Exec/Alloc/Alloc.inc
;
 
; This module handles allocating various system resources in separate helper
; functions.
;
; One sub-module is called DT.inc - it handles allocating in both GDTs and LDTs,
; but requires some setup first: this is performed in the appropriate sub-module.
; As such, it's only to be used internally: alas, assembler doesn't have a
; "private:" designator!
 
;-------------------------------------------------------------------------------
%include        "Exec/Alloc/RAM.inc"    ; RAM-related functions
;-------------------------------------------------------------------------------
%include        "Exec/Alloc/DT.inc"     ; Descriptor Table helper functions
;-------------------------------------------------------------------------------
%include        "Exec/Alloc/IDT.inc"    ; IDT-related functions
;-------------------------------------------------------------------------------
%include        "Exec/Alloc/GDT.inc"    ; GDT-related functions
;-------------------------------------------------------------------------------
%include        "Exec/Alloc/LDT.inc"    ; LDT-related functions
;-------------------------------------------------------------------------------
%include        "Exec/Alloc/TSS.inc"    ; TSS-related functions
Personal tools
Namespaces
Variants
Actions
Navigation
About
Toolbox