BarryServer : Git

All the code for all my projects
// BarryServer : Git / Nucleus / blob / b9a1b73816b93781911016a677d4b1bed5b8dcc9 / kernel / desc.h

// Related

Nucleus

Barry Global Descriptor Tables b9a1b73 (3 years, 3 months ago)
#ifndef KERNEL_DESC_H
#define KERNEL_DESC_H

#include <stdint.h>

/* Structure for a Descriptor Record */
struct DescRecord {
	uint16_t limit;
	uintptr_t base;
} __attribute__((packed));

void init_idt(void);
void init_gdt(void);
void cpu_load_idt(void);
void cpu_load_gdt(void);

#endif