Using AML
archaic-archea opened this issue · 1 comments
I saw this crate and wanted to try and use it due to my lack of a desire to write a parser myself, but it doesn't feel very clear how you actually use it. I got an ACPI handler working, I start a context, and I assume I should first parse the DSDT using AmlContext::parse_table, but how do I know what length the DSDT is for it? Whenever I ask others they say it is located in the DSDT which is slightly confusing, but I assumed the parser would just stop parsing if it reached the end, so I gave it an arbitrary length for rn, but I just get ValueDoesNotExist(AmlName([Segment("DSDT")]))
Ok, so after a bit more searching, I ended up finding an example I COMPLETELY missed, you can find DSDT info in the original AcpiTables structure. I hope this helps anyone searching for answers.