-/* $OpenBSD: pte.h,v 1.11 2008/04/20 09:18:52 kettenis Exp $ */
+/* $OpenBSD: pte.h,v 1.12 2008/07/10 09:29:33 kettenis Exp $ */
/* $NetBSD: pte.h,v 1.7 2001/07/31 06:55:46 eeh Exp $ */
/*
#define SUN4U_TLB_IE 0x0800000000000000LL
#define SUN4U_TLB_SOFT2_MASK 0x07fc000000000000LL
#define SUN4U_TLB_RESERVED_MASK 0x0003f80000000000LL
-#define SUN4U_TLB_PA_MASK 0x000007ffffffe000LL
+#define SUN4U_TLB_PA_MASK 0x00007fffffffe000LL
#define SUN4U_TLB_SOFT_MASK 0x0000000000001f80LL
/* S/W bits */
#define SUN4U_TLB_ACCESS 0x0000000000000200LL
-/* $OpenBSD: locore.s,v 1.144 2008/07/05 20:53:33 kettenis Exp $ */
+/* $OpenBSD: locore.s,v 1.145 2008/07/10 09:29:33 kettenis Exp $ */
/* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */
/*
brgez %g7, 0f
srlx %g7, PGSHIFT, %g7 ! Isolate PA part
sll %g6, 32-PGSHIFT, %g6 ! And offset
- sllx %g7, PGSHIFT+23, %g7 ! There are 23 bits to the left of the PA in the TTE
+ sllx %g7, PGSHIFT+17, %g7 ! There are 17 bits to the left of the PA in the TTE
srl %g6, 32-PGSHIFT, %g6
- srax %g7, 23, %g7
+ srax %g7, 17, %g7
or %g7, %g6, %g6 ! Then combine them to form PA
wr %g0, ASI_PHYS_CACHED, %asi ! Use ASI_PHYS_CACHED to prevent possible page faults
brgez %g7, pcbspill_fail
srlx %g7, PGSHIFT, %g7 ! Isolate PA part
sll %g6, 32-PGSHIFT, %g6 ! And offset
- sllx %g7, PGSHIFT+23, %g7 ! There are 23 bits to the left of the PA in the TTE
+ sllx %g7, PGSHIFT+8, %g7 ! There are 8 bits to the left of the PA in the TTE
srl %g6, 32-PGSHIFT, %g6
- srax %g7, 23, %g7
+ srax %g7, 8, %g7
or %g7, %g6, %g6 ! Then combine them to form PA
! wr %g0, ASI_PHYS_CACHED, %asi ! Use ASI_PHYS_CACHED to prevent possible page faults