]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
sparc32: Un-btfixup PGDIR_{SHIFT,SIZE,MASK} {USER_,}PTRS_PER_{PGD,PMD}
authorDavid S. Miller <davem@davemloft.net>
Sat, 12 May 2012 19:02:02 +0000 (12:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 May 2012 19:02:02 +0000 (12:02 -0700)
Only one set of values exist, the SRMMU ones.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/pgtable_32.h
arch/sparc/mm/srmmu.c

index 4a29b050d7446d7ffd800234843037041becaf56..227118577a9429d32481be4011ed29adad4f7614 100644 (file)
@@ -28,14 +28,6 @@ struct page;
 extern void load_mmu(void);
 extern unsigned long calc_highpages(void);
 
-BTFIXUPDEF_SIMM13(pgdir_shift)
-BTFIXUPDEF_SETHI(pgdir_size)
-BTFIXUPDEF_SETHI(pgdir_mask)
-
-BTFIXUPDEF_SIMM13(ptrs_per_pmd)
-BTFIXUPDEF_SIMM13(ptrs_per_pgd)
-BTFIXUPDEF_SIMM13(user_ptrs_per_pgd)
-
 #define pte_ERROR(e)   __builtin_trap()
 #define pmd_ERROR(e)   __builtin_trap()
 #define pgd_ERROR(e)   __builtin_trap()
@@ -49,13 +41,13 @@ BTFIXUPDEF_INT(page_kernel)
 #define PMD_SIZE               (1UL << PMD_SHIFT)
 #define PMD_MASK               (~(PMD_SIZE-1))
 #define PMD_ALIGN(__addr)      (((__addr) + ~PMD_MASK) & PMD_MASK)
-#define PGDIR_SHIFT            BTFIXUP_SIMM13(pgdir_shift)
-#define PGDIR_SIZE             BTFIXUP_SETHI(pgdir_size)
-#define PGDIR_MASK             BTFIXUP_SETHI(pgdir_mask)
+#define PGDIR_SHIFT            SRMMU_PGDIR_SHIFT
+#define PGDIR_SIZE             SRMMU_PGDIR_SIZE
+#define PGDIR_MASK             SRMMU_PGDIR_MASK
 #define PTRS_PER_PTE           1024
-#define PTRS_PER_PMD           BTFIXUP_SIMM13(ptrs_per_pmd)
-#define PTRS_PER_PGD           BTFIXUP_SIMM13(ptrs_per_pgd)
-#define USER_PTRS_PER_PGD      BTFIXUP_SIMM13(user_ptrs_per_pgd)
+#define PTRS_PER_PMD           SRMMU_PTRS_PER_PMD
+#define PTRS_PER_PGD           SRMMU_PTRS_PER_PGD
+#define USER_PTRS_PER_PGD      PAGE_OFFSET / SRMMU_PGDIR_SIZE
 #define FIRST_USER_ADDRESS     0
 #define PTE_SIZE               (PTRS_PER_PTE*4)
 
index cb18fa80b19c59a896dddf7dfc76ae4e5f531742..38fcb83aaae99bab016b7ef5fe3347455b4aeda2 100644 (file)
@@ -1248,8 +1248,6 @@ static inline void map_kernel(void)
        for (i = 0; sp_banks[i].num_bytes != 0; i++) {
                map_spbank((unsigned long)__va(sp_banks[i].base_addr), i);
        }
-
-       BTFIXUPSET_SIMM13(user_ptrs_per_pgd, PAGE_OFFSET / SRMMU_PGDIR_SIZE);
 }
 
 /* Paging initialization on the Sparc Reference MMU. */
@@ -2145,13 +2143,6 @@ void __init ld_mmu_srmmu(void)
        extern void ld_mmu_iounit(void);
        extern void ___xchg32_sun4md(void);
 
-       BTFIXUPSET_SIMM13(pgdir_shift, SRMMU_PGDIR_SHIFT);
-       BTFIXUPSET_SETHI(pgdir_size, SRMMU_PGDIR_SIZE);
-       BTFIXUPSET_SETHI(pgdir_mask, SRMMU_PGDIR_MASK);
-
-       BTFIXUPSET_SIMM13(ptrs_per_pmd, SRMMU_PTRS_PER_PMD);
-       BTFIXUPSET_SIMM13(ptrs_per_pgd, SRMMU_PTRS_PER_PGD);
-
        BTFIXUPSET_INT(page_none, pgprot_val(SRMMU_PAGE_NONE));
        PAGE_SHARED = pgprot_val(SRMMU_PAGE_SHARED);
        BTFIXUPSET_INT(page_copy, pgprot_val(SRMMU_PAGE_COPY));