mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2025-04-04 21:14:58 -07:00
15 lines
333 B
C
15 lines
333 B
C
#ifndef CPU_H
|
|
#define CPU_H
|
|
|
|
#include <stdint.h>
|
|
|
|
// Existing declarations
|
|
uint32_t read_register(uint8_t reg);
|
|
void write_register(uint8_t reg, uint32_t value);
|
|
void switch_to_protected_mode();
|
|
|
|
// New declaration for cpuid
|
|
void cpuid(uint32_t function, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx);
|
|
|
|
#endif // CPU_H
|