On Mon, Sep 24, 2018 at 09:45:40AM -0600, Aaron Durbin via coreboot wrote:
> On Sun, Sep 23, 2018 at 9:00 AM ron minnich <[email protected]> wrote:
> >
> > ah sorry I forgot.
> >
> > I think selfboot could be reworked (and should be) to interpret "0" as 
> > "somewhere useful"?

Seems like a good idea.

And then the entry point also needs to be fixed somehow: Jumping to
0xffffffe000000000 without pagetables won't work.

> 
> Why is the kernel being loaded at 0?

As far as I understand it, it's because Linux's linker script[0] doesn't
set a physical address. (It sets the virtual address to PAGE_OFFSET,
which is 0xffffffe000000000 in the kernels that I have built.)


Jonathan

[0]: 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/riscv/kernel/vmlinux.lds.S

Attachment: signature.asc
Description: PGP signature

-- 
coreboot mailing list: [email protected]
https://mail.coreboot.org/mailman/listinfo/coreboot

Reply via email to