diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-12-19 20:15:09 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-12-19 20:15:09 +0000 |
commit | dc89890c5d8079b72f97e807d1c42f051b82b729 (patch) | |
tree | 3627f41e9c1575cb72549fad2329f51868c9d78d /sys | |
parent | 8a9124463521387126f83090b1db094735e8c594 (diff) |
Use shifts instead of integer multiplication by the page size in the
Octeon-specific code paths. No functional change.
ok bcallah@ pirofti@
Diffstat (limited to 'sys')
-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 |