Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1211663

Re: [tip:x86/asm] x86/asm/msr: Make wrmsrl() a function

From "H. Peter Anvin" <hpa@zytor.com>
Newsgroups linux.kernel
Subject Re: [tip:x86/asm] x86/asm/msr: Make wrmsrl() a function
Date 2015-08-23 21:30 +0200
Message-ID <q0J7R-1Cq-5@gated-at.bofh.it> (permalink)
References <pPuc9-7rK-3@gated-at.bofh.it> <q0BWF-8bg-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 08/23/2015 04:45 AM, tip-bot for Andy Lutomirski wrote:
> Commit-ID:  47edb65178cb7056c2eea0b6c41a7d8c84547192
> Gitweb:     http://git.kernel.org/tip/47edb65178cb7056c2eea0b6c41a7d8c84547192
> Author:     Andy Lutomirski <luto@kernel.org>
> AuthorDate: Thu, 23 Jul 2015 12:14:40 -0700
> Committer:  Ingo Molnar <mingo@kernel.org>
> CommitDate: Sun, 23 Aug 2015 13:25:38 +0200
> 
> x86/asm/msr: Make wrmsrl() a function
> 
> As of cf991de2f614 ("x86/asm/msr: Make wrmsrl_safe() a
> function"), wrmsrl_safe is a function, but wrmsrl is still a
> macro.  The wrmsrl macro performs invalid shifts if the value
> argument is 32 bits. This makes it unnecessarily awkward to
> write code that puts an unsigned long into an MSR.
> 

Looking at this: where do you see an invalid shift?  Everywhere I can
see we do the proper casting.  Still not side effect free, though.

	-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[tip:x86/asm] x86/asm/msr: Make wrmsrl() a function tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2015-08-23 13:50 +0200
  Re: [tip:x86/asm] x86/asm/msr: Make wrmsrl() a function "H. Peter Anvin" <hpa@zytor.com> - 2015-08-23 21:30 +0200
    Re: [tip:x86/asm] x86/asm/msr: Make wrmsrl() a function Andy Lutomirski <luto@amacapital.net> - 2015-08-24 20:20 +0200

csiph-web