summaryrefslogtreecommitdiff
path: root/arch/xtensa/kernel/entry.S
diff options
context:
space:
mode:
authorChris Zankel <chris@zankel.net>2012-10-18 10:08:20 +0400
committerChris Zankel <chris@zankel.net>2012-10-19 21:24:20 +0400
commit39070cb8a39a84f3379dd8d1dab489e06f3a50a7 (patch)
tree0e79bab84dea6e9bd91d8cedbbe639c8d1c702ed /arch/xtensa/kernel/entry.S
parent795ca178c4fbb4e5d703df8cdab5c1711ba402b1 (diff)
downloadlinux-39070cb8a39a84f3379dd8d1dab489e06f3a50a7.tar.xz
xtensa: minor compiler warning fix
Fix two compiler warnings complaining about truncating a value on a 64-bit host, and about declaring an unused variable that is only used for a specific configuration. Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/kernel/entry.S')
-rw-r--r--arch/xtensa/kernel/entry.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/entry.S b/arch/xtensa/kernel/entry.S
index 30b5c5f7b7eb..18453067c258 100644
--- a/arch/xtensa/kernel/entry.S
+++ b/arch/xtensa/kernel/entry.S
@@ -1542,7 +1542,7 @@ ENTRY(fast_second_level_miss)
* pteval = ((pmdval - PAGE_OFFSET) & PAGE_MASK) | PAGE_DIRECTORY
*/
- movi a1, -PAGE_OFFSET
+ movi a1, (-PAGE_OFFSET) & 0xffffffff
add a0, a0, a1 # pmdval - PAGE_OFFSET
extui a1, a0, 0, PAGE_SHIFT # ... & PAGE_MASK
xor a0, a0, a1