feat: refactored some pci code and added pretty print of classes
This commit is contained in:
@@ -3,7 +3,7 @@ project(new_kernel C ASM)
|
||||
#SET(CMAKE_VERBOSE_MAKEFILE ON)
|
||||
SET(GCC_INCLUDE_DIR "/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/include")
|
||||
SET(CMAKE_C_FLAGS "-I${GCC_INCLUDE_DIR} -mno-sse -g -ffreestanding -Wall -Wextra -fno-exceptions -fno-stack-protector -nostdinc -nostdlib -fno-pie -m32")
|
||||
SET(CMAKE_ASM_FLAGS "${CFLAGS} -m32 -x assembler-with-cpp" )
|
||||
SET(CMAKE_ASM_FLAGS "${CFLAGS} -m32 -x assembler-with-cpp")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS "-T${CMAKE_CURRENT_LIST_DIR}/linker.ld -lgcc -ffreestanding -nostdlib -no-pie")
|
||||
|
||||
include_directories(AFTER kernel boot)
|
||||
@@ -17,6 +17,7 @@ FILE(GLOB_RECURSE boot_asm boot/boot.S)
|
||||
# Run IDE in DMA mode if available (NYI)
|
||||
#add_compile_definitions(IDE_ENABLE_INTERRUPT)
|
||||
# Run the kernel shell as the main task
|
||||
add_compile_definitions(ENABLE_PCIPP) # Support for pretty printing pci class/subclass/interface
|
||||
add_compile_definitions(K_SHELL)
|
||||
|
||||
add_executable(my-kernel.bin ${kernel_src} ${kernel_asm} ${boot_asm})
|
||||
|
||||
Reference in New Issue
Block a user