2024-10-03 09:20:19 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
// MSR
|
|
|
|
bool cpu_has_msr();
|
2025-02-07 06:35:32 -05:00
|
|
|
void cpu_set_msr(uint32_t msr, uint32_t lo, uint32_t hi);
|
|
|
|
void cpu_get_msr(uint32_t msr, uint32_t *lo, uint32_t *hi);
|
2024-10-03 09:20:19 -04:00
|
|
|
|
|
|
|
// 8259 PIC
|
|
|
|
void pic_disable(void);
|
|
|
|
void pic_remap(int offset_master, int offset_slave);
|
|
|
|
|
|
|
|
// APIC
|
|
|
|
void enable_apic(void);
|