[PATCH 2/7] efi: Allow runtime relocate to be disabled

Jiaxun Yang jiaxun.yang at flygoat.com
Wed May 22 08:12:18 CEST 2024



在2024年5月21日五月 下午6:32,Ilias Apalodimas写道:
[...]
> What's ventoy? Googling it seems to be a tool for writing images?

It's a sophisticated EFI application designed for network booting,
more file system support etc...

>
>> It's nearly impossible to run MIPS OS in virtual (or paged)
>> segment. All MIPS OS and bootloaders are running in KSEG/XKPHYS
>> segment, which directly mapping lower bits of virtual address
>> into physical address. So I suppose set_virtual_address_map
>> is unnecessary on MIPS because the mapping for U-Boot is
>> always here and can't be disabled in hardware.
>>
>
> Fair enough, I am not too happy with the restriction but I think it's
> ok to start with
>
[...]
>
> hrrm any idea why? Was that a pre-existing state in mips? Perhaps we
> can fix it in the future.

Yes, I think that's because on some MIPS ISA reversion we don't have
PC-Relative addressing instruction, which makes MIPS's PIC ABI really
awkward. That's why Kernel choose to use such relocation mechanism.

At U-Boot we are just following kernel for now. It might be possible
to switch to standard -fPIC relocation. But I'd prefer just leave it
at this point.

>
> That being said, I was away on a conference, I'll have a look at the
> mips patches, but probably next week

Much appreciated!

Thanks
>
> Cheers
> /Ilias
>>
>> Thanks
>> >
>> > Thanks
>> > /Ilias
>> >>
>> [...]
>> --
>> - Jiaxun

-- 
- Jiaxun


More information about the U-Boot mailing list