summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2015-12-02 14:56:15 +0000
committervisa <visa@openbsd.org>2015-12-02 14:56:15 +0000
commit6fce23e45e603b9c544935cc0f03dd24f31f1d6a (patch)
treeb2fa078fcdb72fb2e41d4e88060fbfce943b7c53
parentClean up octeon memory region setup. (diff)
downloadwireguard-openbsd-6fce23e45e603b9c544935cc0f03dd24f31f1d6a.tar.xz
wireguard-openbsd-6fce23e45e603b9c544935cc0f03dd24f31f1d6a.zip
Enable the DR1 region even with 32-bit page table entries. Those have
enough bits for addressing the region.
-rw-r--r--sys/arch/octeon/octeon/machdep.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/octeon/octeon/machdep.c b/sys/arch/octeon/octeon/machdep.c
index 2e4176e0bbf..c4c5d4874ef 100644
--- a/sys/arch/octeon/octeon/machdep.c
+++ b/sys/arch/octeon/octeon/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.69 2015/12/02 14:52:51 visa Exp $ */
+/* $OpenBSD: machdep.c,v 1.70 2015/12/02 14:56:15 visa Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -183,7 +183,6 @@ octeon_memory_init(struct boot_info *boot_info)
/* DR1 */
i = 1;
if (physmem > atop(256 << 20)) {
-#ifdef MIPS_PTE64
mem_layout[i].mem_first_page = atop(0x410000000ULL);
if (physmem > atop(512 << 20))
mem_layout[i].mem_last_page = atop(0x420000000ULL);
@@ -191,7 +190,6 @@ octeon_memory_init(struct boot_info *boot_info)
mem_layout[i].mem_last_page =
atop(0x410000000ULL) + physmem - atop(256 << 20);
i++;
-#endif
}
/* DR2 */