FRV: Make NOMMU-mode work with base addresses other than 0xC0000000 [try #2]

Make NOMMU-mode work with base addresses other than 0xC0000000 by:

(1) Giving the code that sets up the protection registers the right address
in __sdram_base. Rather than being hard coded to 0xC0000000, the value
of __page_offset is obtained from the linker script.

(2) Eliminate the check in __switch_to() that verifies the current thread
info is in the 0xCxxxxxxx region.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by David Howells and committed by Linus Torvalds ed9b949f e31c243f

+1 -8
+1 -1
arch/frv/kernel/head.inc
··· 46 #ifdef CONFIG_MMU 47 __sdram_base = 0x00000000 /* base address to which SDRAM relocated */ 48 #else 49 - __sdram_base = 0xc0000000 /* base address to which SDRAM relocated */ 50 #endif
··· 46 #ifdef CONFIG_MMU 47 __sdram_base = 0x00000000 /* base address to which SDRAM relocated */ 48 #else 49 + __sdram_base = __page_offset /* base address to which SDRAM relocated */ 50 #endif
-7
arch/frv/kernel/switch_to.S
··· 102 movgs gr14,lr 103 bar 104 105 - srli gr15,#28,gr5 106 - subicc gr5,#0xc,gr0,icc0 107 - beq icc0,#0,111f 108 - break 109 - nop 110 - 111: 111 - 112 # jump to __switch_back or ret_from_fork as appropriate 113 # - move prev to GR8 114 movgs gr4,psr
··· 102 movgs gr14,lr 103 bar 104 105 # jump to __switch_back or ret_from_fork as appropriate 106 # - move prev to GR8 107 movgs gr4,psr