Port-amd64 archive

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

Re: [PATCH] mutliboot2 second round



On Mon, Feb 03, 2020 at 06:48:49PM +0100, Joerg Sonnenberger wrote:
> The regular bootstrap is position independent as far as the physical
> address is concerned. 

That is true for the code, but what about the variables? For instance:
        /* First, reset the PSL. */
        pushl   $PSL_MBO
        popfl   
        
        xorl    %eax,%eax
        cpuiD
        movl    %eax,RELOC(cpuid_level)

It the data segment did not load at 0x1800000, this breaks, doesn't it?

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index