]> git.baikalelectronics.ru Git - kernel.git/commit
FRV: Make NOMMU-mode work with base addresses other than 0xC0000000 [try #2]
authorDavid Howells <dhowells@redhat.com>
Thu, 10 Apr 2008 15:11:00 +0000 (16:11 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Apr 2008 20:41:29 +0000 (13:41 -0700)
commit214a6fd8f2b7ae89db8e8f32c7dde24261b02394
tree03c7005beb1611028c13a34766f87da848b13859
parent2e50b29231b7c5c14255391932a5721647d2d23a
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>
arch/frv/kernel/head.inc
arch/frv/kernel/switch_to.S