diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-01-21 01:54:31 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-01-21 01:54:31 -0500 |
commit | 3125ee72dca25fc2157dcddd07e2d740db921fc4 (patch) | |
tree | e6fdcea67ba6ebf9bf485b397f8488b15da1330d /arch/sh/kernel/head_32.S | |
parent | 2023b843d7b62d99e7356b872e99abc7d6667e49 (diff) |
sh: Track the uncached mapping size.
This provides a variable for tracking the uncached mapping size, and uses
it for pretty printing the uncached lowmem range. Beyond this, we'll also
be building on top of this for figuring out from where the remainder of
P2 becomes usable when constructing unrelated mappings.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/head_32.S')
-rw-r--r-- | arch/sh/kernel/head_32.S | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/sh/kernel/head_32.S b/arch/sh/kernel/head_32.S index e93320135cda..83f2b84b58da 100644 --- a/arch/sh/kernel/head_32.S +++ b/arch/sh/kernel/head_32.S | |||
@@ -217,11 +217,18 @@ ENTRY(_stext) | |||
217 | __PMB_ITER_BY_SIZE(16) | 217 | __PMB_ITER_BY_SIZE(16) |
218 | 218 | ||
219 | /* | 219 | /* |
220 | * Now that we can access it, update cached_to_uncached. | 220 | * Now that we can access it, update cached_to_uncached and |
221 | * uncached_size. | ||
221 | */ | 222 | */ |
222 | mov.l .Lcached_to_uncached, r0 | 223 | mov.l .Lcached_to_uncached, r0 |
223 | mov.l r7, @r0 | 224 | mov.l r7, @r0 |
224 | 225 | ||
226 | mov.l .Luncached_size, r0 | ||
227 | mov #1, r7 | ||
228 | shll16 r7 | ||
229 | shll8 r7 | ||
230 | mov.l r7, @r0 | ||
231 | |||
225 | /* | 232 | /* |
226 | * Clear the remaining PMB entries. | 233 | * Clear the remaining PMB entries. |
227 | * | 234 | * |
@@ -300,5 +307,6 @@ ENTRY(stack_start) | |||
300 | .LFIRST_DATA_ENTRY: .long __MEMORY_START | PMB_V | 307 | .LFIRST_DATA_ENTRY: .long __MEMORY_START | PMB_V |
301 | .LMMUCR: .long MMUCR | 308 | .LMMUCR: .long MMUCR |
302 | .Lcached_to_uncached: .long cached_to_uncached | 309 | .Lcached_to_uncached: .long cached_to_uncached |
310 | .Luncached_size: .long uncached_size | ||
303 | .LMEMORY_SIZE: .long __MEMORY_SIZE | 311 | .LMEMORY_SIZE: .long __MEMORY_SIZE |
304 | #endif | 312 | #endif |