Hi,
I am working on a TPM PPI ACPI interface, and there is a 256 bytes table in system memory that the AML code should read from:
OperationRegion (TPP1, SystemMemory, 0xFED45000, 0x0100)
Field (TPP1, AnyAcc, NoLock, Preserve)
{
FUNC, 2048
}
DerefOf (FUNC [N]) gives the correct value on Linux, but gives something wrong with Windows 10.
I also tried CreateByteField (FUNC, N, PPIF), with the same result.
Note that I verified the value is correct by accessing fields individually TP00, TP01…:
OperationRegion (TPP3, SystemMemory, 0xFED45000, 0x0100)
Field (TPP3, BufferAcc, NoLock, Preserve)
{
TP00, 8
TP01, 8
TP02, 8
…
}
How can you declare a bytes buffer named field to read from system memory with Windows ?
thanks for your help