Turnstone Operating System
Loading...
Searching...
No Matches
descriptor.xx.c File Reference

CPU descriptor implementations such as GDT, IDT. More...

#include <types.h>
#include <cpu.h>
#include <cpu/descriptor.h>
#include <cpu/task.h>
#include <memory.h>
#include <memory/frame.h>
#include <memory/paging.h>
#include <systeminfo.h>
#include <linker.h>
#include <logging.h>

Functions

 MODULE ("turnstone.kernel.cpu.descriptor")
 
uint8_t descriptor_build_gdt_register (void)
 builds a default gdt More...
 
uint8_t descriptor_build_ap_descriptors_register (void)
 builds gdt and tss for application processor More...
 
uint8_t descriptor_build_idt_register (void)
 builds a default idt More...
 

Variables

descriptor_register_tGDT_REGISTER = NULL
 static address of gdt for lgdtr/sgdtr
 
descriptor_register_tIDT_REGISTER = NULL
 static address of idt for lidtr/sidtr
 

Detailed Description

CPU descriptor implementations such as GDT, IDT.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ descriptor_build_ap_descriptors_register()

uint8_t descriptor_build_ap_descriptors_register ( void  )

builds gdt and tss for application processor

Returns
0 at success.

◆ descriptor_build_gdt_register()

uint8_t descriptor_build_gdt_register ( void  )

builds a default gdt

Returns
0 at success.

◆ descriptor_build_idt_register()

uint8_t descriptor_build_idt_register ( void  )

builds a default idt

Returns
0 at success.