Commit 94c26c9a authored by Arnaud Patard's avatar Arnaud Patard Committed by Ralf Baechle

MIPS: Loongson: Fix LOONGSON_ADDRWIN_CFG macro.

There's a typo in the LOONGSON_ADDRWIN_CFG macro. The cpu window mmap
register address should contain the destination parameters not the
source one.  This has not been noticed because the code is only using
source = destination.
Signed-off-by: default avatarArnaud Patard <apatard@mandriva.com>
To: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/1162/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 514b6d0c
...@@ -307,7 +307,7 @@ extern unsigned long _loongson_addrwincfg_base; ...@@ -307,7 +307,7 @@ extern unsigned long _loongson_addrwincfg_base;
*/ */
#define LOONGSON_ADDRWIN_CFG(s, d, w, src, dst, size) do {\ #define LOONGSON_ADDRWIN_CFG(s, d, w, src, dst, size) do {\
s##_WIN##w##_BASE = (src); \ s##_WIN##w##_BASE = (src); \
s##_WIN##w##_MMAP = (src) | ADDRWIN_MAP_DST_##d; \ s##_WIN##w##_MMAP = (dst) | ADDRWIN_MAP_DST_##d; \
s##_WIN##w##_MASK = ~(size-1); \ s##_WIN##w##_MASK = ~(size-1); \
} while (0) } while (0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment