diff options
author | Damien Zammit <damien@zamaudio.com> | 2021-04-03 15:30:10 +1100 |
---|---|---|
committer | Damien Zammit <damien@zamaudio.com> | 2021-04-03 23:03:24 +1100 |
commit | 4f5eb7074e6ecbe8e53552a7f516923bfb75724e (patch) | |
tree | 6f0c729f8fff07bfc532a65ced698610d4dde115 | |
parent | ca5ce0c9b66a8d4128b6c9292adb328bcb732fac (diff) |
acpi: Add acpi_init to server to initialize ACPI
-rw-r--r-- | acpi/Makefile | 2 | ||||
-rw-r--r-- | acpi/main.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/acpi/Makefile b/acpi/Makefile index f84f4b35..49c8ba9a 100644 --- a/acpi/Makefile +++ b/acpi/Makefile @@ -25,7 +25,7 @@ SRCS = main.c netfs_impl.c acpi.c \ MIGSRCS = OBJS = $(patsubst %.S,%.o,$(patsubst %.c,%.o, $(SRCS) $(MIGSRCS))) -HURDLIBS= fshelp ports shouldbeinlibc netfs iohelp ihash +HURDLIBS= fshelp ports shouldbeinlibc netfs iohelp ihash acpica LDLIBS = -lpthread target = acpi diff --git a/acpi/main.c b/acpi/main.c index ac325915..5b879e3f 100644 --- a/acpi/main.c +++ b/acpi/main.c @@ -32,6 +32,7 @@ #include "libnetfs/fsys_S.h" #include "libports/interrupt_S.h" #include "libnetfs/ifsock_S.h" +#include "libacpica/acpi_init.h" #include <acpifs.h> /* Libnetfs stuff */ @@ -76,6 +77,9 @@ main (int argc, char **argv) if (bootstrap == MACH_PORT_NULL) error (1, 0, "must be started as a translator"); + /* Initialize ACPI */ + acpi_init(); + /* Initialize netfs and start the translator. */ netfs_init (); |