lkml.org 
[lkml]   [2021]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 3/6] x86/idt: remove address argument to idt_invalidate()
    Date
    On Mon, May 10 2021 at 17:55, H. Peter Anvin wrote:
    > diff --git a/arch/x86/kernel/machine_kexec_32.c b/arch/x86/kernel/machine_kexec_32.c
    > index 64b00b0d7fe8..6ba90f47d8c3 100644
    > --- a/arch/x86/kernel/machine_kexec_32.c
    > +++ b/arch/x86/kernel/machine_kexec_32.c
    > @@ -232,8 +232,8 @@ void machine_kexec(struct kimage *image)
    > * The gdt & idt are now invalid.
    > * If you want to load them you must set up your own idt & gdt.
    > */
    > - idt_invalidate(phys_to_virt(0));
    > - set_gdt(phys_to_virt(0), 0);
    > + idt_invalidate();
    > + set_gdt(0, 0);

    (NULL, 0)

    first argument it a pointer...


    \
     
     \ /
      Last update: 2021-05-11 16:15    [W:4.082 / U:0.264 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site