Quoting Samuel Thibault (2014-07-01 11:26:19) > Justus Winter, le Tue 01 Jul 2014 11:22:38 +0200, a écrit : > > I don't believe one knows the size in advance. > > In advance, no, but > > > Every acpi table has a header with explicit size information. > > Once you can read this, you can know the size and can remap, can't you?
Sure, that's what the code is doing. It's a multi-step thing. Doing it every time explicitly is cumbersome, that's why I created the helper function. Also, I'm not convinced that undoing the mappings is necessary, as we're shutting down the system. The proper thing to do is of course to include ACPICA. This way we can also use ACPI for hardware discovery aiui. Justus