Added serial functions to the kernel header, making them global.
Also moved the definition of IRQ_Functions out of the header, as this is changed.
This commit is contained in:
parent
d3c8dd45c7
commit
6238fbf8fe
|
@ -576,11 +576,7 @@ typedef struct __attribute__((aligned(64), packed)) {
|
||||||
} XSAVE_AREA;
|
} XSAVE_AREA;
|
||||||
|
|
||||||
|
|
||||||
static void* IRQ_Handlers[16] = {
|
static void* IRQ_Handlers[16];
|
||||||
0, 0, 0, 0, 0, 0, 0, 0,
|
|
||||||
0, 0, 0, 0, 0, 0, 0, 0
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
static const char* ExceptionStrings[] = {
|
static const char* ExceptionStrings[] = {
|
||||||
"Division by Zero",
|
"Division by Zero",
|
||||||
|
@ -642,6 +638,12 @@ size_t ReadCPUFrequency(size_t* PerformanceDest, uint8_t AvgOrDirect);
|
||||||
uint32_t ReadPort(uint16_t Port, int Length);
|
uint32_t ReadPort(uint16_t Port, int Length);
|
||||||
uint32_t WritePort(uint16_t Port, uint32_t Data, int Length);
|
uint32_t WritePort(uint16_t Port, uint32_t Data, int Length);
|
||||||
|
|
||||||
|
/* Serial functions */
|
||||||
|
void serial_write(const char chr);
|
||||||
|
void serial_print(const char* data);
|
||||||
|
void serial_printf(const char* format, ...);
|
||||||
|
void init_serial();
|
||||||
|
|
||||||
/* ==================== Registers ==================== */
|
/* ==================== Registers ==================== */
|
||||||
size_t ReadModelSpecificRegister(size_t MSR);
|
size_t ReadModelSpecificRegister(size_t MSR);
|
||||||
size_t WriteModelSpecificRegister(size_t MSR, size_t Data);
|
size_t WriteModelSpecificRegister(size_t MSR, size_t Data);
|
||||||
|
@ -686,7 +688,7 @@ void ScanCPUFeatures(size_t RAX, size_t RCX);
|
||||||
|
|
||||||
/* ==================== Interrupts ==================== */
|
/* ==================== Interrupts ==================== */
|
||||||
|
|
||||||
uint64_t time;
|
static uint64_t time;
|
||||||
|
|
||||||
void IRQ_Common(INTERRUPT_FRAME* Frame, size_t Interupt);
|
void IRQ_Common(INTERRUPT_FRAME* Frame, size_t Interupt);
|
||||||
void ISR_Common(INTERRUPT_FRAME* Frame, size_t Interrupt);
|
void ISR_Common(INTERRUPT_FRAME* Frame, size_t Interrupt);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user