Re: [question] Whats up with loading the GDT in startup_setup_env in x86_64?

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

 



On Mon, Mar 28, 2022 at 03:25:14PM +0200, Harm Smits wrote:
> After a bit more digging, I have figured out what's going on. The
> compiler optimization passes seem to turn the absolute addressing into
> relative addressing by means of %rip. Should I submit a patch to also
> wrap it in `fixup_pointer` to make it in line with all the other .data
> manipulation in `startup_64_load_idt` and `__startup_64`? This would
> also avoid it from completely relying on an optimization pass which
> might get changed in the future.
> 

Your explanation sounds totally reasonable but I'm not a domain expert
for that.  If you're sure and you've tested it, then send away.  The
worst that can happen is that your patch is rejected but even that means
you learned something so there are only up sides.  :)

regards,
dan carpenter




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux