Where are the global variables in an ACPI namespace stored in RAM? Is this region reserved by the BIOS? See example below:
Scope (_SB.PC00.LPCB.XYZ_)
{
Device (ABCD)
{
Name (VAR1, "foo")
Method (BAR_)
{
VAR1 = "bar"
}
}
}
Where does VAR1 end up being stored, as we have not manually defined a memory operation region for this variable?
Where are the global variables in an ACPI namespace stored in RAM?
It depends on the AML interpreter and the OS. For monolithic kernels, it's likely that any indexing of ACPI's global namespace (e.g. a hash table used to find an object from its name), the variable's metadata (name, object type) and the variable's value will all end up in the kernel's heap (in memory allocated by some kind of kmalloc()
provided by the kernel's memory management).