From: "Stuart Yoder" <stuart.yoder@arm.com>
To: devel@edk2.groups.io
Subject: edk2 memory map on QEMU
Date: Fri, 30 Jul 2021 14:32:43 -0500 [thread overview]
Message-ID: <69abbbc0-f6ab-f21a-17ba-baf273cbc735@arm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 693 bytes --]
I am playing around with EDK2 on QEMU with a UEFI shell application and in the app I allocate some memory using gBS->AllocatePool(EfiBootServicesData, ...)
Programmatically accessing the pointer returned works fine, but when I print it, it does not seem to be what I would expect is a valid address.
I've allocated 4GB to the QEMU machine, which I believe starts at 0x40000000.
But, when I print the address returned by AllocatePool the value is "0x39177018".
I thought that all memory was identity mapped where phys=virt, so not sure where the 0x39177018 is coming from. Trying to dump 0x39177018 from the QEMU console or GDB results in a bad address error.
Thanks,
Stuart
[-- Attachment #2: Type: text/html, Size: 967 bytes --]
next reply other threads:[~2021-07-30 19:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-30 19:32 Stuart Yoder [this message]
2021-07-30 20:36 ` [edk2-devel] edk2 memory map on QEMU Andrew Fish
2021-07-30 21:50 ` Stuart Yoder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=69abbbc0-f6ab-f21a-17ba-baf273cbc735@arm.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox