Skip to content

Commit

Permalink
Initial Layer Bringup
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Oct 10, 2024
1 parent 51292aa commit 5e104b3
Show file tree
Hide file tree
Showing 3 changed files with 375 additions and 3 deletions.
14 changes: 11 additions & 3 deletions drivers/bus/acpi_new/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)

include_directories(
include)
Expand All @@ -23,18 +25,24 @@ list(APPEND UACPI_SOURCE
source/mutex.c
source/osi.c)

add_library(uacpi ${UACPI_SOURCE})
#add_pch(uacpi include/uacpi/acpi.h SOURCE) idk

list(APPEND ACPI_SOURCE
main.c)
main.c
uacpi_layer.c)

include_directories(
"include/uacpi/")
include_directories(
"include/uacpi/platform")
include_directories(
"include/uacpi/internal")
add_library(acpi MODULE
${UACPI_SOURCE}
${ACPI_SOURCE}
acpi.rc)

set_module_type(acpi kernelmodedriver)
target_link_libraries(acpi uacpi)
add_importlibs(acpi ntoskrnl hal)
#add_pch(acpi precomp.h ACPI_SOURCE)
add_cd_file(TARGET acpi DESTINATION reactos/system32/drivers NO_CAB FOR all)
Expand Down
18 changes: 18 additions & 0 deletions drivers/bus/acpi_new/main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include <ntifs.h>
UINT32 LaunchUACPI();
#include <debug.h>

CODE_SEG("INIT")
NTSTATUS
NTAPI
DriverEntry (
PDRIVER_OBJECT DriverObject,
PUNICODE_STRING RegistryPath
)
{
LaunchUACPI();
DPRINT1("DriverEntry: Exit\n");
__debugbreak();

return 0;
}
Loading

0 comments on commit 5e104b3

Please sign in to comment.