From 49d7518e86fd03ee9c7a43f61f5b9cc18b249acf Mon Sep 17 00:00:00 2001 From: gwr Date: Sun, 5 May 1996 04:18:28 +0000 Subject: [PATCH] Add VA_SEGNUM for libkvm. --- sys/arch/sun3/include/pte.h | 4 +++- sys/arch/sun3/include/pte3.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/sun3/include/pte.h b/sys/arch/sun3/include/pte.h index f0bee4596297..adc91551c755 100644 --- a/sys/arch/sun3/include/pte.h +++ b/sys/arch/sun3/include/pte.h @@ -1,4 +1,4 @@ -/* $NetBSD: pte.h,v 1.9 1995/03/10 02:28:01 gwr Exp $ */ +/* $NetBSD: pte.h,v 1.10 1996/05/05 04:18:28 gwr Exp $ */ /* * Copyright (c) 1994 Gordon W. Ross @@ -74,6 +74,8 @@ #define PGT_VME_D16 MAKE_PGTYPE(VME_D16) /* VMEbus 16-bit data */ #define PGT_VME_D32 MAKE_PGTYPE(VME_D32) /* VMEbus 32-bit data */ +#define VA_SEGNUM(x) ((u_int)(x) >> SEGSHIFT) + #define VA_PTE_NUM_SHIFT 13 #define VA_PTE_NUM_MASK (0xF << VA_PTE_NUM_SHIFT) #define VA_PTE_NUM(va) ((va & VA_PTE_NUM_MASK) >> VA_PTE_NUM_SHIFT) diff --git a/sys/arch/sun3/include/pte3.h b/sys/arch/sun3/include/pte3.h index 0bb05789c3d9..8c3e76ffbf15 100644 --- a/sys/arch/sun3/include/pte3.h +++ b/sys/arch/sun3/include/pte3.h @@ -1,4 +1,4 @@ -/* $NetBSD: pte3.h,v 1.9 1995/03/10 02:28:01 gwr Exp $ */ +/* $NetBSD: pte3.h,v 1.10 1996/05/05 04:18:28 gwr Exp $ */ /* * Copyright (c) 1994 Gordon W. Ross @@ -74,6 +74,8 @@ #define PGT_VME_D16 MAKE_PGTYPE(VME_D16) /* VMEbus 16-bit data */ #define PGT_VME_D32 MAKE_PGTYPE(VME_D32) /* VMEbus 32-bit data */ +#define VA_SEGNUM(x) ((u_int)(x) >> SEGSHIFT) + #define VA_PTE_NUM_SHIFT 13 #define VA_PTE_NUM_MASK (0xF << VA_PTE_NUM_SHIFT) #define VA_PTE_NUM(va) ((va & VA_PTE_NUM_MASK) >> VA_PTE_NUM_SHIFT)