diff options
author | Scott Wood <scottwood@freescale.com> | 2011-07-25 11:02:11 (GMT) |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-08-05 04:47:54 (GMT) |
commit | 326ed6a9bcf8d451a6d714d10c8b0f40941a3ed3 (patch) | |
tree | d57cbea021dc1866dbe68e1d32a42fd508c869a9 /arch/x86 | |
parent | 53d1e658df6e26d62500410719aaee2b82067c03 (diff) | |
download | linux-fsl-qoriq-326ed6a9bcf8d451a6d714d10c8b0f40941a3ed3.tar.xz |
powerpc: mtspr/mtmsr should take an unsigned long
Add a cast in case the caller passes in a different type, as it would
if mtspr/mtmsr were functions.
Previously, if a 64-bit type was passed in on 32-bit, GCC would bind the
constraint to a pair of registers, and would substitute the first register
in the pair in the asm code. This corresponds to the upper half of the
64-bit register, which is generally not the desired behavior.
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/x86')
0 files changed, 0 insertions, 0 deletions