<damo22>i have some time off work and i can work on hurd <damo22>last night i almost got acpica compiled into gnumach, there are some errors currently <almuhs>in the reference there are the docs of APIC functions <almuhs>in linux, I had to install bison and flex <almuhs>at very first, I can test the functions in linux. <almuhs>but I have doubts, because the docs don't explain what library I have to include <almuhs>then I will try AcpiGetTable() function <damo22>but are you using the get-repo.sh <damo22>to filter the code to linuxized version? <damo22>dont use the upstream plain version <almuhs>then... have I to install this from repositories? <damo22>you clone the upstream code, but you run a filter program <damo22>just run that in the root git folder <damo22>and you can use the code from in there <damo22>there is an example tool as well <damo22>its still broken but the tree is there <almuhs>I put the test file into the root acpica directory <damo22>once it generates the code you only need what is inside linux-HASH <almuhs>what have I to do with the contents of linux-HASH ? <damo22>should be drivers/ include/ tools/ <damo22>it will probably use your linux kernel headers <damo22>instead of drivers/ and include/ <damo22>this almost compiles, im working on it now <almuhs>the next step is add this inside gnumach, is not? <almuhs>then, now It's necessary to create a interface between gnumach and this library <damo22>there is already an interface you just #include <acpi/acpi.h> i think <almuhs>#include <linux/acpi.h> not compiles <almuhs>Have I to add any flag to GCC for this? <almuhs>I'm simply doing "gcc acpica_test.c -o acpica_test" <damo22>im getting multiple redefinition of symbols <damo22>i need to add some special macros ***Server sets mode: +nt
<damo22>maybe its supposed to be built as part of a linux kernel <almuhs>in linux-HASH there are not a makefile <almuhs>maybe do I need to download the linux sources? <damo22>-rw-r--r-- 1 demo demo 7908364 Apr 24 09:40 libacpica.a <almuhs>now try to boot with this microkernel, to check that this doesn't crash <almuhs>there are some warning during compilation <damo22>theres also a couple of things i hacked to make it compile <almuhs>do some tests with It and, if you want, send a patch to gnumach's upstream <almuhs>or you prefer to test It with acpi tables before? <damo22>i need to remove some warnings and figure out what the missing structs are for <damo22>i should probably make it init the tables too <damo22>and store them in a static variable <almuhs>but the current work is a good work, anyway <almuhs>I need to go sleep, It's so late and I'm exhausted <almuhs>write me to the maillist if you want notice me any news <damo22>and i did it with just glue code, didnt touch the sources <damo22>acpica is linked into gnumach and theres no missing symbols <damo22>how do i call a function without getting duplicate symbols? <damo22>its failing at link time when i try to call acpi_initialize_tables() <damo22>i can compile in the acpica but when i try to use any of the functions in a new c file, i get every symbol duplicated <damo22>ok i figured it out i need to implement some empty stubs ***dp is now known as DP
***DP is now known as dp
<damo22>youpi: hey, ive almost added acpica to gnumach <damo22>im missing these symbols isdigit isprint isspace isxdigit tolower toupper vsprintf <damo22>youpi: how do i get stuff to print in the kernel log? <damo22>ie, i want it to appear in /var/log/dmesg ***rekado_ is now known as rekado