mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[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:
11
modules.yaml
11
modules.yaml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user