summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* sparc32: drop btfixup in mmu_context_32.hSam Ravnborg2012-05-132-5/+2
| | | | | Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop btfixup in pgtable_32.hSam Ravnborg2012-05-133-89/+58
| | | | | | | Only one function left using btfixup. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop btfixup in pgalloc_32.hSam Ravnborg2012-05-132-81/+63
| | | | | Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Pass -mcpu=v7 explicitly to gcc.David S. Miller2012-05-131-1/+1
| | | | | | We should be agnostic to what gcc happens to be generating by default. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Un-btfixup more PTE constants and PTE ops.David S. Miller2012-05-122-38/+17
| | | | | | | pte_{filei,wrprotecti,mkcleani,mkoldi} pte_{mkwrite,mkdirty,mkyoung} Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Un-btfixup pte_{write,dirty,young}iDavid S. Miller2012-05-122-13/+3
| | | | | | | | And we can certainly get rid of the const function attributes, there is no way that's needed any longer and no other arch uses this kind of annotation here. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop unused code in process_32Sam Ravnborg2012-05-121-82/+0
| | | | | | | | It is commented out using #ifdef 0 / #endif, and has been so for a long time. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Un-btfixup set_pte, pte_present, mk_pte{_phys,_io}().David S. Miller2012-05-122-52/+33
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop loadmmuSam Ravnborg2012-05-123-40/+6
| | | | | Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Un-btfixup pmd_{bad,present}().David S. Miller2012-05-122-14/+9
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Un-btfixup pgd_{none,bad,present}.David S. Miller2012-05-122-22/+16
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Un-btfixup PAGE_{NONE,COPY,READONLY,SHARED,KERNEL}.David S. Miller2012-05-123-71/+23
| | | | | | | | | That lets us also get rid of the run-time initialization of protection_map[] and all the ugly module workarounds for PAGE_KERNEL and PAGE_SHARED to deal with the fact that we can't do btfixups for modular code. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Un-btfixup pmd_page and pte_pfn.David S. Miller2012-05-122-35/+25
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Un-btfixup {pte,pmd,pgd}_clear().David S. Miller2012-05-123-49/+39
| | | | | | | | | | | | | | | | Also we can remove BTFIXUPCALL_SWAPO0G0 as that is no longer used. This was rather amusing, we were setting the btfixup vectors based upon cpu type but all to the same exact generic srmmu routines. Furthermore, we were inconsistently marking the fixup as either BTFIXUPCALL_SWAPO0G0 or BTFIXUPCALL_NORM. What a mess, glad we could untangle this stuff. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Un-btfixup PGDIR_{SHIFT,SIZE,MASK} {USER_,}PTRS_PER_{PGD,PMD}David S. Miller2012-05-122-23/+6
| | | | | | Only one set of values exist, the SRMMU ones. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop unused type/externSam Ravnborg2012-05-122-14/+0
| | | | | Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop btfixup for check_pgt_cacheSam Ravnborg2012-05-124-27/+1
| | | | | | | | | It is a noop for srmmu - so use a define as sparc64 does. And drop all sparc callers - no need to confuse our-self be calling a noop function. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop btfixup for switch_mmSam Ravnborg2012-05-122-6/+4
| | | | | | | | | This revealed that the implementation of switch_mm had a bogus extra argument. No harm as said argument was never used - but confusing. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: code cleanup in floppy glueSam Ravnborg2012-05-121-9/+8
| | | | | | | | | Small cleanup to improve readability. Dropped one test for sparc_cpu_model - we already know that only sun4m support floppy. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: fix warning in floopy glueSam Ravnborg2012-05-121-0/+1
| | | | | | | | | | | Fix following warning: arch/sparc/include/asm/floppy_32.h:342:5: warning: 'op' may be used uninitialized in this function The warning are legitimite and we can end up using op uninitialized. This fixes build with my gcc on UP. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: simpler cputype check in head_32.SSam Ravnborg2012-05-121-25/+9
| | | | | | | | We know this is not a sun4/sun4c - as we checked earlier. So no need to repeat the check. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop extra getprop call during bootSam Ravnborg2012-05-121-41/+9
| | | | | | | | | It was present only to support the sun4, sun4c boxes which do not have the "compatible" property in the root-node of the device tree. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop prom version check in head_32.SSam Ravnborg2012-05-121-13/+0
| | | | | | | | | We already sorted out if we are a sun4/sun4c and halted. So no need to check the prom version as we know this is a v2 or v3 as sun4m, sun4d etc. does not use a v1 prom. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: remove sun4c specific variables from head_32.SSam Ravnborg2012-05-121-10/+1
| | | | | | | This gives us back 7 pages... Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Add back early sun4/sun4c detection so we can warn properly.David S. Miller2012-05-121-0/+23
| | | | | | | We need to do the check before we try to remap the kernel using SRMMU operations. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Trivial removal of sun4c references in comments.David S. Miller2012-05-129-24/+8
| | | | | | | | I left some around, like the ones in the openprom headers, since we need to think about which pieces of those datastructures and code we can completely toss now. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove sun4 and sun4c from enum sparc_cpu.David S. Miller2012-05-125-56/+11
| | | | | | | | | All the remaining references are trivially removed since we've just eliminated the final reference to sparc_cpu_model from assembler code in commit b7d96ce189564e661909fbf8df39d7358149885b ("sparc32: Remove sparc_cpu_model read from floppy interrupt handler.") Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove sparc_cpu_model read from floppy interrupt handler.David S. Miller2012-05-121-2/+0
| | | | | | | | | Since we no longer test the cpu model value, no need to load it into a register any more. It just gets overwritten in the next instruction anyways. :-) Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Kill unused defines from asm/head_32.hDavid S. Miller2012-05-121-7/+0
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove some more sun4c code from floppy glue.David S. Miller2012-05-121-14/+2
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove sun4c tlb/vac insn patching from entry.SDavid S. Miller2012-05-121-37/+0
| | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove ldXa and stXa defines, unused.David S. Miller2012-05-121-6/+0
| | | | | | These were for sharing some MMU code between sun4 and sun4c. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove sun4{,c} control reg definitions from contregs.h.David S. Miller2012-05-121-22/+0
| | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove sparc_lvl15_nmi().David S. Miller2012-05-121-15/+0
| | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Restore SMP build and rectify sun4m NMI when non-SMP.David S. Miller2012-05-122-50/+30
| | | | | | | | | The non-SMP sun4m NMI handler was still accessing SUN4C registers. Fix that and share the sun4m NMI trap code between SMP and non-SMP cases. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Kill asm/vac-ops.hDavid S. Miller2012-05-124-130/+0
| | | | | | All sun4/sun4c stuff and unused. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Stop warning about sun4/sun4c in SMP Kconfig option.David S. Miller2012-05-121-1/+1
| | | | Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove sun4c floppy assembler.David S. Miller2012-05-121-10/+1
| | | | | | | | There were two blocks of code for the two ways to twiddle the terminal count pin in the AUXIO register, one for sun4c and one for sun4m. Kill the former. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Put back SPARC_BRANCH.David S. Miller2012-05-121-0/+7
| | | | | | It's needed for the floppy interrupt trap table patching. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Kill SUN4C_LOCK_{VADDR,END} and associated comment.David S. Miller2012-05-121-16/+0
| | | | | | No longer used. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Clear out unused asm/machines.h values.David S. Miller2012-05-125-43/+4
| | | | | | | | | | | | Remove sun4 and sun4c machine ID values from asm/machines.h Also kill NUM_SUN_MACHINES, use ARRAY_SIZE instead. Kill asm/machines.h include and sun4c checks from asm/floppy_32.h Remove asm/machines.h include from setup_32.c and time_32.c, unused. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc: Convert some assembler over to linakge.h's ENTRY/ENDPROCDavid S. Miller2012-05-1215-143/+97
| | | | | | Use those, instead of doing it all by hand. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: Remove inline strncmp "optimization" for constant counts.David S. Miller2012-05-123-69/+2
| | | | | | Let the compiler do stuff like this. Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: use inline versions of pgprot_noncached, pte_to_pgoff and pgoff_to_pteSam Ravnborg2012-05-123-28/+14
| | | | | | | | We no longer have different versions of these so use a few simple static inline functions. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop btfixup for alloc_thread_info_node/free_thread_infoSam Ravnborg2012-05-122-10/+4
| | | | | Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop sun4c bits from head_32.SSam Ravnborg2012-05-121-129/+19
| | | | | | | | | | As we no longer support sun4c we can remove all the code to support remapping the kernel in head_32.S. We also try to tell the user that the machine is not support, in case someone try to boot the kernel on a sun4c one day Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop test for sun4c in signal_32Sam Ravnborg2012-05-121-5/+2
| | | | | Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop sun4c user stack checking routineSam Ravnborg2012-05-123-91/+6
| | | | | | | | With this we no longer do any run-time patchings of traps. So drop the function + macro to support this. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop sun4c stack checking routineSam Ravnborg2012-05-122-50/+1
| | | | | | | And drop run-time patching too. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* sparc32: drop sun4c window overflow stack checking routineSam Ravnborg2012-05-122-71/+2
| | | | | | | Also drop run-time patching for srmmu Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>