diff options
author | Pekka Paalanen <pq@iki.fi> | 2008-05-12 21:21:03 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-24 11:27:32 +0200 |
commit | 87e547fe41a8b57d6d80afc67a0031fbe477eb0d (patch) | |
tree | 96b34f7c11268ebb58a470faf858132a69b82639 /arch/x86/mm/mmio-mod.c | |
parent | 970e6fa03885f32cc43e42cb08c73a5f54cd8bd9 (diff) | |
download | op-kernel-dev-87e547fe41a8b57d6d80afc67a0031fbe477eb0d.zip op-kernel-dev-87e547fe41a8b57d6d80afc67a0031fbe477eb0d.tar.gz |
x86 mmiotrace: fix page-unaligned ioremaps
mmiotrace_ioremap() expects to receive the original unaligned map phys address
and size. Also fix {un,}register_kmmio_probe() to deal properly with
unaligned size.
Signed-off-by: Pekka Paalanen <pq@iki.fi>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/mm/mmio-mod.c')
-rw-r--r-- | arch/x86/mm/mmio-mod.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/mm/mmio-mod.c b/arch/x86/mm/mmio-mod.c index a8d2a00..278998c 100644 --- a/arch/x86/mm/mmio-mod.c +++ b/arch/x86/mm/mmio-mod.c @@ -280,6 +280,7 @@ static void ioremap_trace_core(unsigned long offset, unsigned long size, { static atomic_t next_id; struct remap_trace *trace = kmalloc(sizeof(*trace), GFP_KERNEL); + /* These are page-unaligned. */ struct mmiotrace_map map = { .phys = offset, .virt = (unsigned long)addr, |