Skip to content

Commit

Permalink
first lets start with vgal hal
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Dec 27, 2024
1 parent ac54323 commit 808b682
Show file tree
Hide file tree
Showing 40 changed files with 15,063 additions and 2 deletions.
2 changes: 2 additions & 0 deletions hal/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ if((ARCH STREQUAL "i386") OR (ARCH STREQUAL "amd64"))
elseif(ARCH STREQUAL "arm")
add_subdirectory(halarm)
endif()

add_subdirectory(halacpi)
57 changes: 57 additions & 0 deletions hal/halacpi/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

add_definitions(
-D_NTHALDLL_
-D_NTHAL_)

add_definitions(-DMM_NEW)

include_directories(include ${REACTOS_SOURCE_DIR}/ntoskrnl/include)

# Handle the spec file for the dll name
spec2def(halacpi.dll halacpi.spec ADD_IMPORTLIB)

# The components generic
list(APPEND HAL_SOURCE
acpi/busemul.c
acpi/dispatch.c
acpi/halacpi.c
acpi/halpnpdd.c
bus/pcibus.c
generic/i386/bios.c
generic/i386/portio.c
generic/beep.c
generic/cmos.c
generic/display.c
generic/dma.c
generic/drive.c
generic/halinit.c
generic/memory.c
generic/misc.c
generic/reboot.c
generic/spinlock.c
generic/sysinfo.c
generic/usage.c
pic/pic.c
pic/profil.c
pic/timer.c
up/processor.c)

list(APPEND HAL_ASM_SOURCE
generic/v86.S
pic/pic.S
pic/pictrap.S
pic/systimer.S)

add_asm_files(lib_hal_pic_asm ${HAL_ASM_SOURCE})

add_library(halacpi MODULE
${HAL_SOURCE}
${lib_hal_pic_asm}
version/halacpi.rc
${CMAKE_CURRENT_BINARY_DIR}/halacpi.def)
set_module_type(halacpi kerneldll ENTRYPOINT HalInitSystem 8)
target_link_libraries(halacpi libcntpr wdmguid)
add_dependencies(halacpi asm psdk bugcodes xdk)
add_importlibs(halacpi ntoskrnl)
#add_pch(halacpi include/hal.h SOURCE)
add_cd_file(TARGET halacpi DESTINATION reactos/system32 NO_CAB FOR all)
Loading

0 comments on commit 808b682

Please sign in to comment.