• Denys Vlasenko's avatar
    x86/asm/entry/64: Fold syscall32_cpu_init() into its sole user · a76c7f46
    Denys Vlasenko authored
    Having syscall32/sysenter32 initialization in a separate tiny
    function, called from within a function that is already syscall
    init specific, serves no real purpose.
    
    Its existense also caused an unintended effect of having
    wrmsrl(MSR_CSTAR) performed twice: once we set it to a dummy
    function returning -ENOSYS, and immediately after
    (if CONFIG_IA32_EMULATION), we set it to point to the proper
    syscall32 entry point, ia32_cstar_target.
    Signed-off-by: default avatarDenys Vlasenko <dvlasenk@redhat.com>
    Acked-by: default avatarAndy Lutomirski <luto@amacapital.net>
    Cc: Alexei Starovoitov <ast@plumgrid.com>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: H. Peter Anvin <hpa@zytor.com>
    Cc: Kees Cook <keescook@chromium.org>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Oleg Nesterov <oleg@redhat.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Will Drewry <wad@chromium.org>
    Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
    a76c7f46
common.c 34.6 KB