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>
Esse commit está contido em:
Paul Mundt
2010-01-21 15:54:31 +09:00
commit 3125ee72dc
3 arquivos alterados com 24 adições e 8 exclusões

Ver arquivo

@@ -217,11 +217,18 @@ ENTRY(_stext)
__PMB_ITER_BY_SIZE(16)
/*
* Now that we can access it, update cached_to_uncached.
* Now that we can access it, update cached_to_uncached and
* uncached_size.
*/
mov.l .Lcached_to_uncached, r0
mov.l r7, @r0
mov.l .Luncached_size, r0
mov #1, r7
shll16 r7
shll8 r7
mov.l r7, @r0
/*
* Clear the remaining PMB entries.
*
@@ -300,5 +307,6 @@ ENTRY(stack_start)
.LFIRST_DATA_ENTRY: .long __MEMORY_START | PMB_V
.LMMUCR: .long MMUCR
.Lcached_to_uncached: .long cached_to_uncached
.Luncached_size: .long uncached_size
.LMEMORY_SIZE: .long __MEMORY_SIZE
#endif