aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-12sparc32: drop loadmmuSam Ravnborg3-40/+6
Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: Un-btfixup pmd_{bad,present}().David S. Miller2-14/+9
Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: Un-btfixup pgd_{none,bad,present}.David S. Miller2-22/+16
Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: Un-btfixup PAGE_{NONE,COPY,READONLY,SHARED,KERNEL}.David S. Miller3-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 <[email protected]>
2012-05-12sparc32: Un-btfixup pmd_page and pte_pfn.David S. Miller2-35/+25
Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: Un-btfixup {pte,pmd,pgd}_clear().David S. Miller3-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 <[email protected]>
2012-05-12sparc32: Un-btfixup PGDIR_{SHIFT,SIZE,MASK} {USER_,}PTRS_PER_{PGD,PMD}David S. Miller2-23/+6
Only one set of values exist, the SRMMU ones. Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: drop unused type/externSam Ravnborg2-14/+0
Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: drop btfixup for check_pgt_cacheSam Ravnborg4-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: drop btfixup for switch_mmSam Ravnborg2-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: code cleanup in floppy glueSam Ravnborg1-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: fix warning in floopy glueSam Ravnborg1-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: simpler cputype check in head_32.SSam Ravnborg1-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: drop extra getprop call during bootSam Ravnborg1-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: drop prom version check in head_32.SSam Ravnborg1-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: remove sun4c specific variables from head_32.SSam Ravnborg1-10/+1
This gives us back 7 pages... Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: Add back early sun4/sun4c detection so we can warn properly.David S. Miller1-0/+23
We need to do the check before we try to remap the kernel using SRMMU operations. Signed-off-by: David S. Miller <[email protected]>
2012-05-12sparc32: Trivial removal of sun4c references in comments.David S. Miller9-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 <[email protected]>
2012-05-12sparc32: Remove sun4 and sun4c from enum sparc_cpu.David S. Miller5-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 <[email protected]>
2012-05-12sparc32: Remove sparc_cpu_model read from floppy interrupt handler.David S. Miller1-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 <[email protected]>
2012-05-11sparc32: Kill unused defines from asm/head_32.hDavid S. Miller1-7/+0
Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Remove some more sun4c code from floppy glue.David S. Miller1-14/+2
Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Remove sun4c tlb/vac insn patching from entry.SDavid S. Miller1-37/+0
No longer used. Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Remove ldXa and stXa defines, unused.David S. Miller1-6/+0
These were for sharing some MMU code between sun4 and sun4c. Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Remove sun4{,c} control reg definitions from contregs.h.David S. Miller1-22/+0
No longer used. Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Remove sparc_lvl15_nmi().David S. Miller1-15/+0
No longer used. Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Restore SMP build and rectify sun4m NMI when non-SMP.David S. Miller2-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 <[email protected]>
2012-05-11sparc32: Kill asm/vac-ops.hDavid S. Miller4-130/+0
All sun4/sun4c stuff and unused. Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Stop warning about sun4/sun4c in SMP Kconfig option.David S. Miller1-1/+1
Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Remove sun4c floppy assembler.David S. Miller1-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 <[email protected]>
2012-05-11sparc32: Put back SPARC_BRANCH.David S. Miller1-0/+7
It's needed for the floppy interrupt trap table patching. Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Kill SUN4C_LOCK_{VADDR,END} and associated comment.David S. Miller1-16/+0
No longer used. Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc: Clear out unused asm/machines.h values.David S. Miller5-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 <[email protected]>
2012-05-11sparc: Convert some assembler over to linakge.h's ENTRY/ENDPROCDavid S. Miller15-143/+97
Use those, instead of doing it all by hand. Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: Remove inline strncmp "optimization" for constant counts.David S. Miller3-69/+2
Let the compiler do stuff like this. Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: use inline versions of pgprot_noncached, pte_to_pgoff and pgoff_to_pteSam Ravnborg3-28/+14
We no longer have different versions of these so use a few simple static inline functions. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: drop btfixup for alloc_thread_info_node/free_thread_infoSam Ravnborg2-10/+4
Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: drop sun4c bits from head_32.SSam Ravnborg1-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: drop test for sun4c in signal_32Sam Ravnborg1-5/+2
Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: drop sun4c user stack checking routineSam Ravnborg3-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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: drop sun4c stack checking routineSam Ravnborg2-50/+1
And drop run-time patching too. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: drop sun4c window overflow stack checking routineSam Ravnborg2-71/+2
Also drop run-time patching for srmmu Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: drop sun4c specific stack validationSam Ravnborg2-58/+3
This allows us to kill run-time patching for this function too Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: delete pgtsun4c.hSam Ravnborg3-182/+2
Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: remove all uses of ARCH_SUN4CSam Ravnborg6-61/+8
Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: drop sun4c specific ___xchg32 implementationSam Ravnborg1-20/+0
Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: remove sun4c trapsSam Ravnborg10-468/+4
We used to runtime patch the trap table for srmmu. With the removal of sun4c support this is no longer required. With the sun4c trap removed we can remove all the referenced trap handling which is sun4c specific. This also allows us to get rid of the nosun4c.c file that contained only dummy functions/data. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: remove calls to sun4c dummy mm inits functionsSam Ravnborg4-39/+0
Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-11sparc32: drop sun4c supportSam Ravnborg13-2514/+11
Machines with sun4c support are very rare these days, and noone is using them for any practical purposes. The sun4c support has been know broken for quite some time too. So rather than trying to keep it up-to-date, lets get rid of it. This allows us to do some very welcome cleanup of sparc32 support. Updated the former sun4c specifc nmi (which was also used for sun4m UP) to be a generic UP NMI. Signed-off-by: Sam Ravnborg <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2012-05-09sparc: fix build fail in mm/init_64.c when NEED_MULTIPLE_NODES is offPaul Gortmaker1-9/+5
Commit 625d693e9784f988371e69c2b41a2172c0be6c11 (linux-next) "sparc64: Convert over to NO_BOOTMEM." causes the following compile failure for sparc64 allnoconfig: arch/sparc/mm/init_64.c:822:16: error: unused variable 'paddr' arch/sparc/mm/init_64.c:1759:7: error: unused variable 'node' arch/sparc/mm/init_64.c:809:12: error: 'memblock_nid_range' defined but not used The paddr decl can easily be shuffled within the ifdef. The memblock_nid_range is just a stub function for when NEED_MULTIPLE_NODES is off, but the only caller is within a NEED_MULTIPLE_NODES enabled section, so we can simply delete it. The unused "node" is slightly more interesting. In the case of "# CONFIG_NEED_MULTIPLE_NODES is not set" we no longer get the definition of: #define NODE_DATA(nid) (node_data[nid]) from arch/sparc/include/asm/mmzone.h - but instead we get: #define NODE_DATA(nid) (&contig_page_data) from include/linux/mmzone.h -- and since the arg is ignored, the thing really is unused. Rather than put in a confusing looking __maybe_unused, simply splitting the declaration from the assignment seemed to me to be the least offensive. Cc: Sam Ravnborg <[email protected]> Cc: "David S. Miller" <[email protected]> Signed-off-by: Paul Gortmaker <[email protected]> Signed-off-by: David S. Miller <[email protected]>