ACPI GAS System Memory

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
rizor
Posts: 6
Joined: Sun Dec 28, 2008 6:01 pm

ACPI GAS System Memory

Post by rizor »

Hi,

I found an entry in the ACPI tables.
The GAS can contain System Memory informations.
Does it mean, that I can detect the physical memory with ACPI and the GAS-entries?
I could not find something helpful about the System Memory entry.
Does someone have experiences with this type of memory detection?

Thanks.

rizor
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: ACPI GAS System Memory

Post by Brendan »

Hi,
rizor wrote:I found an entry in the ACPI tables.
The GAS can contain System Memory informations.
Does it mean, that I can detect the physical memory with ACPI and the GAS-entries?
I could not find something helpful about the System Memory entry.
Does someone have experiences with this type of memory detection?
Imagine if I wanted to tell you where I stored something. I could tell you the physical address of it (e.g. with a pointer), but that wouldn't work if it was stored at an IO port or in PCI configuration space. I could tell you which address space (e.g. physical address space, or IO port space, or PCI configuration space, or...) and which address within that address space; but then you still wouldn't know if whatever I stored was 8-bit or 16-bit or 32-bit or 64-bit. I'd have to tell you all three things - which address space, which address in that address space, and what size. If I stored lots of completely different things all over the place, then to make it easier I could create a structure that contained all 3 pieces of information. That is all the GAS (or "Generic Address Structure") is - you can think of it as a complicated pointer.

It has nothing to do with memory detection at all.

To detect memory correctly (as per the ACPI specs), see "Chapter 14, System Address Map Interfaces". This chapter describes the different interfaces that are used on different systems. For 80x86 "PC BIOS" systems, you want "Section 14.1, INT 15H, E820H - Query System Address Map".


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
rizor
Posts: 6
Joined: Sun Dec 28, 2008 6:01 pm

Re: ACPI GAS System Memory

Post by rizor »

Okay, thank you.
I understood it wrong.
I thought that ACPI has all memory maps, but I have to check myself.

Thank you
Post Reply