[parisc-linux-cvs] [PATCH] 2.4.18-pa13 Allow 32-bit 2.0 kernels to address more then 2GB RAM.

Ryan Bradetich rbradetich@uswest.net
02 Apr 2002 20:13:13 -0700


--=-gFOhdXPvE6iI3swvZZkK
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

This patch allows 32-bit kernels to address more then 2GB RAM.

- Ryan

--=-gFOhdXPvE6iI3swvZZkK
Content-Disposition: attachment; filename=2.4.18-pa13.diff
Content-Transfer-Encoding: quoted-printable
Content-Type: text/x-patch; charset=ISO-8859-1

Index: Makefile
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/linux/Makefile,v
retrieving revision 1.283
diff -u -p -r1.283 Makefile
--- Makefile	2002/03/30 20:34:41	1.283
+++ Makefile	2002/04/03 03:10:07
@@ -1,7 +1,7 @@
 VERSION =3D 2
 PATCHLEVEL =3D 4
 SUBLEVEL =3D 18
-EXTRAVERSION =3D -pa12
+EXTRAVERSION =3D -pa13
=20
 KERNELRELEASE=3D$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
=20
Index: arch/parisc/kernel/entry.S
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /var/cvs/linux/arch/parisc/kernel/entry.S,v
retrieving revision 1.91
diff -u -p -r1.91 entry.S
--- arch/parisc/kernel/entry.S	2002/03/20 05:08:58	1.91
+++ arch/parisc/kernel/entry.S	2002/04/03 03:10:07
@@ -1352,12 +1352,10 @@ dtlb_miss_20:
=20
 	/* Get rid of prot bits and convert to page addr for idtlbt */
=20
-	/* FIXME - sign extension of 0xf0... range is incorrect!
-	** extrd,s below needs to "f-extend" to "0xf0f0f0...".
-	** 4 instances of this to fix.
-	*/
-
+	extrd,s         pte,35,4,t0
 	depdi		0,63,12,pte	/* clear lower 12 bits */
+        addi,=3D          1,t0,0=20
+        extrd,u,*tr     pte,56,25,pte=20
 	extrd,s		pte,56,25,pte	/* bit 31:8 >> 8  */=20
 	idtlbt          pte,prot
=20
@@ -1424,9 +1422,12 @@ nadtlb_miss_20:
=20
 	/* Get rid of prot bits and convert to page addr for idtlbt */
=20
-	depdi		0,63,12,pte	/* clear lower 12 bits */
-	extrd,s		pte,56,25,pte	/* bit 31:8 >> 8  */=20
-	idtlbt          pte,prot
+        extrd,s         pte,35,4,t0
+        depdi           0,63,12,pte     /* clear lower 12 bits */
+        addi,=3D          1,t0,0
+        extrd,u,*tr     pte,56,25,pte
+        extrd,s         pte,56,25,pte   /* bit 31:8 >> 8  */
+        idtlbt          pte,prot
=20
 	rfir
 	nop
@@ -1674,8 +1675,11 @@ itlb_miss_common_20:
=20
 	/* Get rid of prot bits and convert to page addr for iitlbt */
=20
-	depdi		0,63,12,pte	/* clear lower 12 bits */
-	extrd,s		pte,56,25,pte	/* bit 31:8 >> 8  */=20
+        extrd,s         pte,35,4,t0=20
+        depdi           0,63,12,pte     /* clear lower 12 bits */
+        addi,=3D          1,t0,0
+        extrd,u,*tr     pte,56,25,pte=20
+        extrd,s         pte,56,25,pte   /* bit 31:8 >> 8  */
 	iitlbt          pte,prot
=20
 	rfir
@@ -1889,11 +1893,13 @@ dbit_nolock_20:
 	extrd,u,*=3D 	pte,_PAGE_GATEWAY_BIT+32,1,r0
 	depdi		0,11,2,prot	/* If Gateway, Set PL2 to 0 */
=20
-	/* Get rid of prot bits and convert to page addr for idtlbt */
+        extrd,s         pte,35,4,t0=20
+        depdi           0,63,12,pte     /* clear lower 12 bits */
+        addi,=3D          1,t0,0
+        extrd,u,*tr     pte,56,25,pte=20
+        extrd,s         pte,56,25,pte   /* bit 31:8 >> 8  */
+        idtlbt          pte,prot
=20
-	depdi		0,63,12,pte	/* clear lower 12 bits */
-	extrd,s		pte,56,25,pte	/* bit 31:8 >> 8  */=20
-	idtlbt          pte,prot
 #ifdef CONFIG_SMP
 	CMPIB=3D,n        0,spc,dbit_nounlock_20
 	ldi             1,t1

--=-gFOhdXPvE6iI3swvZZkK--