From: Scott Wood Date: Mon, 25 Jul 2011 11:02:11 +0000 (+0000) Subject: powerpc: mtspr/mtmsr should take an unsigned long X-Git-Tag: v3.1-rc2~30^2~18 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=326ed6a9bcf8d451a6d714d10c8b0f40941a3ed3;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed