Re: head.S/code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 119 1:
> 120         movl $1f,%eax
> 121         jmp *%eax               /* make sure eip
> is relocated */
> 122 1:
>

it jumps to label 1.... which is next line.

since the kernel is compiled with base address 0xc0000000
it starts executing from virtual address as you guessed.

Muthu

>
> as written this code is for enable paging  by setting
> cr3 register
> but making jump to *%eax at last instruction what it
> means?
> might be once it sets the page table and then
> when it making jmp *%eax it uses the page table
> so that it jumps now to virtual address of that
> label means kernel image at 3GB address
>
> can anybody plz give the detail of above code?
> possibly of each line
> thanks
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
>
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
>



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux