From: Laszlo Ersek <lersek@redhat.com>
To: krishnaLee <sssky307@163.com>, edk2-devel@lists.01.org
Subject: Re: question about uefi calling convention
Date: Tue, 14 Aug 2018 15:54:03 +0200 [thread overview]
Message-ID: <c45d5460-17b8-6cfb-2c44-777e1e438b21@redhat.com> (raw)
In-Reply-To: <32b120a2.bd5e.16537b23974.Coremail.sssky307@163.com>
On 08/14/18 11:09, krishnaLee wrote:
> Hi,
> In uefi 2.6 specification -> 2.3.4 x64 Platforms,
> "Paging mode is enabled and any memory space defined by the UEFI memory map is identity mapped (virtual address equals physical address)" ...
> is that mean if I write C code like " void *pointer=0xabcd",the pointer is virtual address ,is equal to the physical address, and they are the same?
Yes.
> How the virtual address translate from "CR3->Page Base address,Page directory,page table ..." to physical address in "x64 Long mode,64-bit mode"? is there any sample not theory?
The page tables are built in the DXE IPL PEIM, function
CreateIdentityMappingPageTables().
Laszlo
next prev parent reply other threads:[~2018-08-14 13:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-14 9:09 question about uefi calling convention krishnaLee
2018-08-14 13:54 ` Laszlo Ersek [this message]
2018-08-15 0:14 ` krishnaLee
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=c45d5460-17b8-6cfb-2c44-777e1e438b21@redhat.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