diff options
author | 2013-12-19 20:15:08 +0000 | |
---|---|---|
committer | 2013-12-19 20:15:08 +0000 | |
commit | 5ad78ec1efa0cd83a507b70b286c1f6e5f92c0f0 (patch) | |
tree | 0e1b506e248f966492f15d4c733dc9aea80e1480 | |
parent | sun4e needs the same 1.6 usec ZS_DELAY() as sun4 does. (diff) | |
download | wireguard-openbsd-5ad78ec1efa0cd83a507b70b286c1f6e5f92c0f0.tar.xz wireguard-openbsd-5ad78ec1efa0cd83a507b70b286c1f6e5f92c0f0.zip |
Use shifts instead of integer multiplication by the page size in the
Octeon-specific code paths. No functional change.
ok bcallah@ pirofti@
-rw-r--r-- | sys/arch/mips64/mips64/tlbhandler.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mips64/mips64/tlbhandler.S b/sys/arch/mips64/mips64/tlbhandler.S index f8d51f190fc..6464e1f4955 100644 --- a/sys/arch/mips64/mips64/tlbhandler.S +++ b/sys/arch/mips64/mips64/tlbhandler.S @@ -1,4 +1,4 @@ -/* $OpenBSD: tlbhandler.S,v 1.38 2012/10/03 11:18:23 miod Exp $ */ +/* $OpenBSD: tlbhandler.S,v 1.39 2013/12/19 20:15:08 miod Exp $ */ /* * Copyright (c) 1995-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -373,7 +373,7 @@ LEAF(tlb_flush, 0) dmfc0 ta0, COP_0_TLB_HI # Save the PID #ifdef CPU_OCTEON - mul ta2, ta1, 2 * PAGE_SIZE + PTR_SLL ta2, ta1, PAGE_SHIFT + 1 addu v0, v0, ta2 #else dmtc0 v0, COP_0_TLB_HI # Mark entry high as invalid @@ -432,7 +432,7 @@ LEAF(tlb_flush_addr, 0) bltz v0, 1f # index < 0 => !found nop #ifdef CPU_OCTEON - mul ta2, v0, 2 * PAGE_SIZE + PTR_SLL ta2, v0, PAGE_SHIFT + 1 addu ta1, ta1, ta2 #endif dmtc0 ta1, COP_0_TLB_HI # Mark entry high as invalid |