Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh64: Kill off unused fixed I/O mapping window.

This was reworked some time ago to go through fixmaps instead, leaving
the range itself unused. As such, kill off the remaining references and
hand over the remaining space for fixmaps directly. This also makes it
possible to simplify the vmalloc fault case as we no longer have to care
about the special section.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

+2 -6
+1 -1
arch/sh/include/asm/fixmap.h
··· 96 96 #ifdef CONFIG_SUPERH32 97 97 #define FIXADDR_TOP (P3_ADDR_MAX - PAGE_SIZE) 98 98 #else 99 - #define FIXADDR_TOP (0xff000000 - PAGE_SIZE) 99 + #define FIXADDR_TOP ((unsigned long)(-PAGE_SIZE)) 100 100 #endif 101 101 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT) 102 102 #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
-3
arch/sh/include/asm/pgtable_64.h
··· 87 87 #define pte_unmap(pte) do { } while (0) 88 88 89 89 #ifndef __ASSEMBLY__ 90 - #define IOBASE_VADDR 0xff000000 91 - #define IOBASE_END 0xffffffff 92 - 93 90 /* 94 91 * PTEL coherent flags. 95 92 * See Chapter 17 ST50 CPU Core Volume 1, Architecture.
+1 -2
arch/sh/mm/fault_64.c
··· 246 246 tsk = current; 247 247 mm = tsk->mm; 248 248 249 - if ((address >= VMALLOC_START && address < VMALLOC_END) || 250 - (address >= IOBASE_VADDR && address < IOBASE_END)) { 249 + if ((address >= VMALLOC_START && address < VMALLOC_END)) { 251 250 if (ssr_md) 252 251 /* 253 252 * Process-contexts can never have this address