Kintsugi OS
0.4.0
x86 Monolithic OS
Loading...
Searching...
No Matches
gdt.h
Go to the documentation of this file.
1
#ifndef GDT_H
2
#define GDT_H
3
4
#include "../kklibc/ctypes.h"
5
6
typedef
struct
{
7
u16
limit_low
;
8
u16
base_low
;
9
u8
base_middle
;
10
u8
access
;
11
u8
granularity
;
12
u8
base_high
;
13
}
__attribute__
((packed)) gdt_entry_t;
14
15
typedef
struct
{
16
u16
limit
;
17
u32
base
;
18
}
__attribute__
((packed)) gdt_register_t;
19
20
void
gdt_install
();
21
22
#endif
u32
unsigned int u32
Definition
ctypes.h:11
u16
unsigned short u16
Definition
ctypes.h:13
u8
unsigned char u8
Definition
ctypes.h:15
gdt_install
void gdt_install()
Definition
gdt.c:18
__attribute__
Структура загрузочного сектора FAT12.
Definition
gdt.h:6
__attribute__::base_high
u8 base_high
Definition
gdt.h:12
__attribute__::base_low
u16 base_low
Definition
gdt.h:8
__attribute__::granularity
u8 granularity
Definition
gdt.h:11
__attribute__::access
u8 access
Definition
gdt.h:10
__attribute__::base
u32 base
Definition
gdt.h:17
__attribute__::base_middle
u8 base_middle
Definition
gdt.h:9
__attribute__::limit
u16 limit
Definition
gdt.h:16
__attribute__::limit_low
u16 limit_low
Definition
gdt.h:7
src
kernel
cpu
gdt.h
Generated by
1.9.8