• Hugh Dickins's avatar
    kaiser: fix regs to do_nmi() ifndef CONFIG_KAISER · 487f0b73
    Hugh Dickins authored
    
    pjt has observed that nmi's second (nmi_from_kernel) call to do_nmi()
    adjusted the %rdi regs arg, rightly when CONFIG_KAISER, but wrongly
    when not CONFIG_KAISER.
    
    Although the minimal change is to add an #ifdef CONFIG_KAISER around
    the addq line, that looks cluttered, and I prefer how the first call
    to do_nmi() handled it: prepare args in %rdi and %rsi before getting
    into the CONFIG_KAISER block, since it does not touch them at all.
    
    And while we're here, place the "#ifdef CONFIG_KAISER" that follows
    each, to enclose the "Unconditionally restore CR3" comment: matching
    how the "Unconditionally use kernel CR3" comment above is enclosed.
    Signed-off-by: default avatarHugh Dickins <hughd@google.com>
    Acked-by: default avatarJiri Kosina <jkosina@suse.cz>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    487f0b73
entry_64.S 44 KB