2020-07-25 13:31:02 +00:00
|
|
|
|
|
|
|
# Generic
|
|
|
|
list(APPEND HAL_PC98_SOURCE
|
|
|
|
pc98/beep.c
|
|
|
|
pc98/clock.c
|
|
|
|
pc98/cmos.c
|
|
|
|
pc98/delay.c
|
|
|
|
pc98/pic.c
|
|
|
|
pc98/profil.c
|
|
|
|
pc98/reboot.c
|
|
|
|
generic/bios.c
|
|
|
|
generic/display.c
|
|
|
|
generic/dma.c
|
|
|
|
generic/drive.c
|
|
|
|
generic/halinit.c
|
2021-09-06 18:42:23 +00:00
|
|
|
generic/kdpci.c
|
2020-07-25 13:31:02 +00:00
|
|
|
generic/memory.c
|
|
|
|
generic/misc.c
|
|
|
|
generic/nmi.c
|
|
|
|
generic/portio.c
|
|
|
|
generic/sysinfo.c
|
2023-07-20 19:44:44 +00:00
|
|
|
generic/usage.c
|
|
|
|
generic/x86bios.c)
|
2020-07-25 13:31:02 +00:00
|
|
|
|
|
|
|
list(APPEND HAL_PC98_ASM_SOURCE
|
|
|
|
generic/v86.S)
|
|
|
|
|
|
|
|
# PIC
|
|
|
|
list(APPEND HAL_PC98_SOURCE
|
|
|
|
pc98/irql.c
|
|
|
|
generic/timer.c
|
2021-03-14 23:42:49 +00:00
|
|
|
pic/halinit.c
|
|
|
|
pic/pic.c
|
|
|
|
pic/processor.c)
|
2020-07-25 13:31:02 +00:00
|
|
|
|
|
|
|
list(APPEND HAL_PC98_ASM_SOURCE
|
|
|
|
generic/trap.S
|
2021-03-14 23:42:49 +00:00
|
|
|
pic/pic.S)
|
2020-07-25 13:31:02 +00:00
|
|
|
|
|
|
|
# Legacy
|
|
|
|
list(APPEND HAL_PC98_SOURCE
|
|
|
|
legacy/bus/bushndlr.c
|
|
|
|
legacy/bus/cmosbus.c
|
|
|
|
legacy/bus/isabus.c
|
|
|
|
legacy/bus/pcibus.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/pci_classes.c
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/pci_vendors.c
|
|
|
|
legacy/bus/sysbus.c
|
|
|
|
legacy/bussupp.c
|
|
|
|
legacy/halpnpdd.c
|
|
|
|
legacy/halpcat.c)
|
|
|
|
|
|
|
|
add_asm_files(lib_hal_pc98_asm ${HAL_PC98_ASM_SOURCE})
|
2021-02-02 15:33:15 +00:00
|
|
|
add_library(lib_hal_pc98 OBJECT ${HAL_PC98_SOURCE} ${lib_hal_pc98_asm})
|
2020-07-25 13:31:02 +00:00
|
|
|
add_dependencies(lib_hal_pc98 bugcodes xdk asm)
|
|
|
|
#add_pch(lib_hal_pc98 pc98/halpc98.h)
|
|
|
|
|
2021-02-02 15:33:15 +00:00
|
|
|
target_compile_definitions(lib_hal_pc98 PRIVATE SARCH_PC98)
|