Re: [PATCH] sparc32: remove unused file: include/asm/pgtsun4.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 30, 2011 at 03:10:33PM +0100, Sam Ravnborg wrote:
> On Fri, Dec 30, 2011 at 11:44:28PM +1100, Julian Calaby wrote:
> > Sam,
> > 
> > I understand if this isn't used at all, but this seems to be Sun4C
> > stuff, so why isn't it used - are these defines defined elsewhere?
> 
> The SUN4C stuff is defined in arch/sparc/include/asm/pgtsun4c.h

The diff between pgtsun.h and pgtsun4c.h is very small.
The relevant part of the diff is below:

@@ -9,10 +10,10 @@
 #include <asm/contregs.h>

 /* PMD_SHIFT determines the size of the area a second-level page table can map */
-#define SUN4C_PMD_SHIFT       22
+#define SUN4C_PMD_SHIFT       23

 /* PGDIR_SHIFT determines what a third-level page table entry can map */
-#define SUN4C_PGDIR_SHIFT       22
+#define SUN4C_PGDIR_SHIFT       23
 #define SUN4C_PGDIR_SIZE        (1UL << SUN4C_PGDIR_SHIFT)
 #define SUN4C_PGDIR_MASK        (~(SUN4C_PGDIR_SIZE-1))
 #define SUN4C_PGDIR_ALIGN(addr) (((addr)+SUN4C_PGDIR_SIZE-1)&SUN4C_PGDIR_MASK)
@@ -23,9 +24,9 @@
 #define SUN4C_REAL_PGDIR_MASK        (~(SUN4C_REAL_PGDIR_SIZE-1))
 #define SUN4C_REAL_PGDIR_ALIGN(addr) (((addr)+SUN4C_REAL_PGDIR_SIZE-1)&SUN4C_REAL_PGDIR_MASK)

-/* 16 bit PFN on sun4c */
-#define SUN4C_PFN_MASK 0xffff
-
+/* 19 bit PFN on sun4 */
+#define SUN4C_PFN_MASK 0x7ffff
+
 /* Don't increase these unless the structures in sun4c.c are fixed */
 #define SUN4C_MAX_SEGMAPS 256
 #define SUN4C_MAX_CONTEXTS 16


I stripped aways the parts which was in comments and white-space only.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux