Re: [PATCH 4/5] acpi_init: Add enter_sleep method based on ACPI server

2021-03-31 Thread Samuel Thibault
Damien Zammit, le jeu. 01 avril 2021 00:23:29 +1100, a ecrit: > --- > libacpica/acpi_init.c| 43 > shutdown/acpi_shutdown.h | 1 + > 2 files changed, 44 insertions(+) > > diff --git a/libacpica/acpi_init.c b/libacpica/acpi_init.c > index 754da4be..405

Re: [PATCH 3/5] acpica: Add acpi_init

2021-03-31 Thread Samuel Thibault
Damien Zammit, le jeu. 01 avril 2021 00:23:28 +1100, a ecrit: > +void > +acpi_ds_dump_method_stack(acpi_status status, ...) > +// struct acpi_walk_state *walk_state, > +// union acpi_parse_object *op) > +{ > + return; > +} I guess you can use backtrace()

Re: [PATCH 2/5] acpica: Add config for GNU

2021-03-31 Thread Samuel Thibault
Damien Zammit, le jeu. 01 avril 2021 00:23:27 +1100, a ecrit: > +++ b/libacpica/acpi/platform/acgnu.h Note that since this file includes code from other files, it *has* to carry the license notice of the files the code comes from. See the licensing terms of those files. I'm wondering whether this

Re: [PATCH 1/5] acpica: Add makefile

2021-03-31 Thread Samuel Thibault
Damien Zammit, le jeu. 01 avril 2021 00:23:26 +1100, a ecrit: > +# __KERNEL__ is needed: > +# even though we are in userspace, we are acting like a kernel > +# from the point of view of ACPICA > +CFLAGS += -D__KERNEL__ \ Yes, that's fine :) Samuel

Re: [PATCH 1/5] acpica: Add makefile

2021-03-31 Thread Samuel Thibault
Samuel Thibault, le mer. 31 mars 2021 16:49:33 +0200, a ecrit: > Damien Zammit, le jeu. 01 avril 2021 00:23:26 +1100, a ecrit: > > +SRCS = \ > > + acpi_init.c \ > > + dsargs.c\ > > + dscontrol.c \ > > + dsfield.c \ > > + dsinit.c\ > > + dsmethod.c

Re: [PATCH 1/5] acpica: Add makefile

2021-03-31 Thread Samuel Thibault
Samuel Thibault, le mer. 31 mars 2021 16:49:33 +0200, a ecrit: > Is it not possible to convince upstream to provide such a library > itself? Or it could be made a translator in the upstream repository, and use RPCs to exchange the informations we need. Samuel

Re: [PATCH 1/5] acpica: Add makefile

2021-03-31 Thread Samuel Thibault
Damien Zammit, le jeu. 01 avril 2021 00:23:26 +1100, a ecrit: > +SRCS = \ > + acpi_init.c \ > + dsargs.c\ > + dscontrol.c \ > + dsfield.c \ > + dsinit.c\ > + dsmethod.c \ > + dsmthdat.c \ > + dsobject.c \ > + dso

Re: [PATCH 2/5] acpica: Add config for GNU

2021-03-31 Thread Samuel Thibault
Hello, Damien Zammit, le jeu. 01 avril 2021 00:23:27 +1100, a ecrit: > --- > libacpica/acpi/platform/acenv.h | 3 + > libacpica/acpi/platform/acenvex.h | 3 + > libacpica/acpi/platform/acgnu.h | 167 ++ > libacpica/acpi/platform/acgnuex.h | 69 I'

[PATCH 5/5] acpi: Add ACPICA as a library to this server

2021-03-31 Thread Damien Zammit
--- 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= O

[PATCH 4/5] acpi_init: Add enter_sleep method based on ACPI server

2021-03-31 Thread Damien Zammit
--- libacpica/acpi_init.c| 43 shutdown/acpi_shutdown.h | 1 + 2 files changed, 44 insertions(+) diff --git a/libacpica/acpi_init.c b/libacpica/acpi_init.c index 754da4be..405ad4e9 100644 --- a/libacpica/acpi_init.c +++ b/libacpica/acpi_init.c @@ -13,

[PATCH 3/5] acpica: Add acpi_init

2021-03-31 Thread Damien Zammit
--- libacpica/acpi_init.c | 478 ++ libacpica/acpi_init.h | 8 + 2 files changed, 486 insertions(+) create mode 100644 libacpica/acpi_init.c create mode 100644 libacpica/acpi_init.h diff --git a/libacpica/acpi_init.c b/libacpica/acpi_init.c new file mod

[PATCH 1/5] acpica: Add makefile

2021-03-31 Thread Damien Zammit
--- Makefile | 1 + libacpica/Makefile | 189 + 2 files changed, 190 insertions(+) create mode 100644 libacpica/Makefile diff --git a/Makefile b/Makefile index 0e2ee1ec..fd8cef4d 100644 --- a/Makefile +++ b/Makefile @@ -32,6 +32,7 @@ lib-su

[PATCH 2/5] acpica: Add config for GNU

2021-03-31 Thread Damien Zammit
--- libacpica/acpi/platform/acenv.h | 3 + libacpica/acpi/platform/acenvex.h | 3 + libacpica/acpi/platform/acgnu.h | 167 ++ libacpica/acpi/platform/acgnuex.h | 69 4 files changed, 242 insertions(+) create mode 100644 libacpica/acpi/platform/acg

[hurd - ACPICA]: glue code for libacpica

2021-03-31 Thread Damien Zammit
ACPICA is the upstream ACPI implementation. The upstream code is hosted on https://github.com/acpica/acpica It has filtering that reprocesses the upstream reference implementation into something they call "linuxized" (more readable code). I have implemented the following glue to snarf this linuxiz