summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2015-06-24 21:26:04 +0000
committermiod <miod@openbsd.org>2015-06-24 21:26:04 +0000
commitc456dd64a83e89ecadc00713be21839081217f79 (patch)
tree13cdcf9be28b66b0dbd92c89a92a6a4e1437c5d4
parentUninitialized variables; pedro@ (diff)
downloadwireguard-openbsd-c456dd64a83e89ecadc00713be21839081217f79.tar.xz
wireguard-openbsd-c456dd64a83e89ecadc00713be21839081217f79.zip
Remove unused KERNEL_PD_SIZE macro which performs unsafe signed shift of
KERNEL_BASE.
-rw-r--r--sys/arch/arm/include/pmap.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/arm/include/pmap.h b/sys/arch/arm/include/pmap.h
index 288ca5ba92b..384130dd01f 100644
--- a/sys/arch/arm/include/pmap.h
+++ b/sys/arch/arm/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.32 2015/02/15 21:34:33 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.33 2015/06/24 21:26:04 miod Exp $ */
/* $NetBSD: pmap.h,v 1.76 2003/09/06 09:10:46 rearnsha Exp $ */
/*
@@ -366,10 +366,6 @@ do { \
#define pmap_pde_page(pde) l1pte_page_p(*(pde))
#define pmap_pde_fpage(pde) l1pte_fpage_p(*(pde))
-/* Size of the kernel part of the L1 page table */
-#define KERNEL_PD_SIZE \
- (L1_TABLE_SIZE - (KERNEL_BASE >> L1_S_SHIFT) * sizeof(pd_entry_t))
-
/************************* ARM MMU configuration *****************************/
#if (ARM_MMU_GENERIC + ARM_MMU_SA1 + ARM_MMU_V7) != 0