* some question about arch/x86/kernel/head_64.S
@ 2015-12-30 10:45 xiaoqiang zhao
[not found] ` <20151230113540.GA21821@kmu-tp-x230>
0 siblings, 1 reply; 4+ messages in thread
From: xiaoqiang zhao @ 2015-12-30 10:45 UTC (permalink / raw)
To: kernelnewbies
Hello:
After kernel is decompressed, the kernel will execute startup_64 and
the first two instructions are:
leaq _text(%rip), %rbp
subq $_text - __START_KERNEL_map, %rbp
I tried to understand them but can not figure out what rbp contains
after this two instructions. Anybody give me a clear explanation?
Thanks a lot!
^ permalink raw reply [flat|nested] 4+ messages in thread
* 回复:Re: some question about arch/x86/kernel/head_64.S
[not found] ` <20151230113540.GA21821@kmu-tp-x230>
@ 2015-12-30 12:04 ` hitmoon
2015-12-30 12:25 ` Mike Krinkin
2015-12-30 21:12 ` 回复:Re: " hitmoon
0 siblings, 2 replies; 4+ messages in thread
From: hitmoon @ 2015-12-30 12:04 UTC (permalink / raw)
To: kernelnewbies
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151230/a8a4db63/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* 回复:Re: some question about arch/x86/kernel/head_64.S
2015-12-30 12:04 ` 回复:Re: " hitmoon
@ 2015-12-30 12:25 ` Mike Krinkin
2015-12-30 21:12 ` 回复:Re: " hitmoon
1 sibling, 0 replies; 4+ messages in thread
From: Mike Krinkin @ 2015-12-30 12:25 UTC (permalink / raw)
To: kernelnewbies
On Wed, Dec 30, 2015 at 08:04:19PM +0800, hitmoon wrote:
> Thank you mike!
> so ?after the first instruction ?rbp contains the offset of actually loaded
> address, which equals the physical address.
yes, comment above says that at that point "someone has loaded an identity
mapped page table", so it should be equal to the physical address.
> $_text - __START_KERNEL_map contains the expected physical address .
> Right ?
yes, as far as i can tell.
^ permalink raw reply [flat|nested] 4+ messages in thread
* 回复:Re: 回复:Re: some question about arch/x86/kernel/head_64.S
2015-12-30 12:04 ` 回复:Re: " hitmoon
2015-12-30 12:25 ` Mike Krinkin
@ 2015-12-30 21:12 ` hitmoon
1 sibling, 0 replies; 4+ messages in thread
From: hitmoon @ 2015-12-30 21:12 UTC (permalink / raw)
To: kernelnewbies
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20151231/781db42e/attachment.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-12-30 21:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-30 10:45 some question about arch/x86/kernel/head_64.S xiaoqiang zhao
[not found] ` <20151230113540.GA21821@kmu-tp-x230>
2015-12-30 12:04 ` 回复:Re: " hitmoon
2015-12-30 12:25 ` Mike Krinkin
2015-12-30 21:12 ` 回复:Re: " hitmoon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).