[cpu] Split cpuid validation into separate lib

In order to allow the bootloader to do preliminary CPUID validation
while UEFI is still handling displaying information to the user, split
most of the kernel's CPUID handling into a library to be used by both
kernel and boot.
This commit is contained in:
Justin C. Miller
2021-01-18 13:26:45 -08:00
parent e52fd8eacf
commit 34120fc4c1
8 changed files with 229 additions and 165 deletions

View File

@@ -6,6 +6,7 @@ modules:
output: jsix.elf
target: host
deps:
- cpu
- kutil
includes:
- src/kernel
@@ -62,6 +63,8 @@ modules:
kind: exe
target: boot
output: boot.efi
deps:
- cpu
source:
- src/boot/main.cpp
- src/boot/console.cpp
@@ -110,6 +113,14 @@ modules:
- src/libraries/kutil/memory.cpp
- src/libraries/kutil/printf.c
cpu:
kind: lib
output: libcpu.a
includes:
- src/libraries/cpu/include
source:
- src/libraries/cpu/cpu.cpp
libc:
kind: lib