[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/5] acpi: Add ACPICA as a library to this server
From: |
Damien Zammit |
Subject: |
[PATCH 5/5] acpi: Add ACPICA as a library to this server |
Date: |
Thu, 1 Apr 2021 00:23:30 +1100 |
---
acpi/Makefile | 2 +-
acpi/main.c | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
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 ();
--
2.30.1
- Re: [PATCH 1/5] acpica: Add makefile, (continued)