On Tue, Apr 12, 2022, Varad Gautam wrote: > This allows sharing IDT setup code between EFI (-fPIC) and > non-EFI builds. > > Signed-off-by: Varad Gautam <varad.gautam@xxxxxxxx> > --- > lib/x86/desc.c | 5 +++++ > lib/x86/desc.h | 1 + > lib/x86/setup.c | 1 - > x86/cstart64.S | 3 ++- > x86/efi/efistart64.S | 5 ----- I belive setup_tr_and_percpu in x86/cstart.S can also use the common load_idt.