Skip to content

Commit

Permalink
sparc32: drop sparc_unmapped_base
Browse files Browse the repository at this point in the history
The base is always the same so no need to use a variable for this.

Signed-off-by: Sam Ravnborg <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sravnborg authored and davem330 committed Jul 26, 2012
1 parent d884297 commit c966a33
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions arch/sparc/include/asm/page_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ typedef unsigned long iopgprot_t;

typedef struct page *pgtable_t;

extern unsigned long sparc_unmapped_base;
#define TASK_UNMAPPED_BASE sparc_unmapped_base
#define TASK_UNMAPPED_BASE 0x50000000

#else /* !(__ASSEMBLY__) */

Expand Down
2 changes: 0 additions & 2 deletions arch/sparc/mm/init_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ unsigned long pfn_base;
EXPORT_SYMBOL(pfn_base);

struct sparc_phys_banks sp_banks[SPARC_PHYS_BANKS+1];
unsigned long sparc_unmapped_base;

struct pgtable_cache_struct pgt_quicklists;

Expand Down Expand Up @@ -297,7 +296,6 @@ void __init paging_init(void)
case sun4m:
case sun4d:
srmmu_paging_init();
sparc_unmapped_base = 0x50000000;
break;
default:
prom_printf("paging_init: Cannot init paging on this Sparc\n");
Expand Down

0 comments on commit c966a33

Please sign in to comment.