VA_VSEG() should use NBPG

This commit is contained in:
deraadt 1994-11-02 23:16:59 +00:00
parent 138a1d9e01
commit 88af1ef233
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
* @(#)pte.h 8.1 (Berkeley) 6/11/93
*
* from: Header: pte.h,v 1.5 92/11/26 02:04:43 torek Exp
* $Id: pte.h,v 1.4 1994/10/26 07:16:22 deraadt Exp $
* $Id: pte.h,v 1.5 1994/11/02 23:16:59 deraadt Exp $
*/
/*
@ -119,7 +119,7 @@ extern int nptesg;
#endif
/* virtual address to virtual segment number */
#define VA_VSEG(va) (((int)(va) >> SGSHIFT) & 0xfff)
#define VA_VSEG(va) (((int)(va) >> SGSHIFT) & PGOFSET)
/* virtual address to virtual page number, for Sun-4 and Sun-4c */
#define VA_SUN4_VPG(va) (((int)(va) >> 13) & 31)