2020-12-02 02:59:57 +00:00
|
|
|
#ifndef _ARCH_I386_GDT_H
|
|
|
|
#define _ARCH_I386_GDT_H
|
|
|
|
|
|
|
|
struct GDT {
|
|
|
|
unsigned int limit;
|
|
|
|
unsigned long int base;
|
|
|
|
unsigned short int type;
|
|
|
|
};
|
|
|
|
|
|
|
|
void encode_gdt_entry(unsigned short int *, struct GDT);
|
2020-12-18 18:38:32 +00:00
|
|
|
extern void set_gdt(unsigned short int[], int);
|
2020-12-02 02:59:57 +00:00
|
|
|
extern void reload_segments(void);
|
|
|
|
|
|
|
|
#endif
|