Skip to content

Commit b8e8efa

Browse files
herraa1glikely
authored andcommitted
powerpc: reserve fixmap entries for early debug
Add a set of entries to the fixmap table to allow usage of known reserved virtual address space by early debug code. The address space reserved is the top 128K of the 32-bit address space. This allows, if required, the use of a BAT to do the mappings. Signed-off-by: Albert Herranz <[email protected]> Acked-by: Benjamin Herrenschmidt <[email protected]> Signed-off-by: Grant Likely <[email protected]>
1 parent 08b95a7 commit b8e8efa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/powerpc/include/asm/fixmap.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
*/
4545
enum fixed_addresses {
4646
FIX_HOLE,
47+
/* reserve the top 128K for early debugging purposes */
48+
FIX_EARLY_DEBUG_TOP = FIX_HOLE,
49+
FIX_EARLY_DEBUG_BASE = FIX_EARLY_DEBUG_TOP+((128*1024)/PAGE_SIZE)-1,
4750
#ifdef CONFIG_HIGHMEM
4851
FIX_KMAP_BEGIN, /* reserved pte's for temporary kernel mappings */
4952
FIX_KMAP_END = FIX_KMAP_BEGIN+(KM_TYPE_NR*NR_CPUS)-1,

0 commit comments

Comments
 (0)