Commit 881e02d2 authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc32: drop swapper_pg_dir

We save one page of RAM dropping swapper_pg_dir.
It was only used for an assignment in init-mm.c and we
redid this later in srmmu.c anyway.

This is likely a left-over from the sun4c removal.

To avoid a dummy variable we use a simple #define swapper_pg_dir NULL
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7cdfbc74
...@@ -52,8 +52,9 @@ extern unsigned long calc_highpages(void); ...@@ -52,8 +52,9 @@ extern unsigned long calc_highpages(void);
#define PAGE_READONLY SRMMU_PAGE_RDONLY #define PAGE_READONLY SRMMU_PAGE_RDONLY
#define PAGE_KERNEL SRMMU_PAGE_KERNEL #define PAGE_KERNEL SRMMU_PAGE_KERNEL
/* Top-level page directory */ /* Top-level page directory - dummy used by init-mm.
extern pgd_t swapper_pg_dir[1024]; * srmmu.c will assign the real one (which is dynamically sized) */
#define swapper_pg_dir NULL
extern void paging_init(void); extern void paging_init(void);
......
...@@ -58,8 +58,6 @@ sun4e_notsup: ...@@ -58,8 +58,6 @@ sun4e_notsup:
/* This was the only reasonable way I could think of to properly align /* This was the only reasonable way I could think of to properly align
* these page-table data structures. * these page-table data structures.
*/ */
.globl swapper_pg_dir
swapper_pg_dir: .skip PAGE_SIZE
.globl empty_zero_page .globl empty_zero_page
empty_zero_page: .skip PAGE_SIZE empty_zero_page: .skip PAGE_SIZE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment