From: krishnaLee <sssky307@163.com>
To: "Laszlo Ersek" <lersek@redhat.com>
Cc: edk2-devel@lists.01.org
Subject: Re: question about uefi calling convention
Date: Wed, 15 Aug 2018 08:14:51 +0800 (CST) [thread overview]
Message-ID: <6d3ce91f.22f6.1653aef6248.Coremail.sssky307@163.com> (raw)
In-Reply-To: <c45d5460-17b8-6cfb-2c44-777e1e438b21@redhat.com>
thank you,Laszlo.
krishna.
At 2018-08-14 21:54:03, "Laszlo Ersek" <lersek@redhat.com> wrote:
>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
prev parent reply other threads:[~2018-08-15 0:14 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
2018-08-15 0:14 ` krishnaLee [this message]
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=6d3ce91f.22f6.1653aef6248.Coremail.sssky307@163.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