summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-06-24 21:26:05 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-06-24 21:26:05 +0000
commit68916d71db7d4578664e52c8a643cbe7cac780a2 (patch)
tree3b422a0221e94babc8dc478eaadfbd8b84f66418
parent2af7b81d0d40af92b3fdf97938494d6d414d7c79 (diff)
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