BarryServer : Git

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

// Related

Nucleus

Barry ACPI + APIC 232d0f9 (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 cpu_load_idt(void);
void cpu_load_gdt(void);
void init_pic(void);

#endif