From: miod Date: Tue, 12 Aug 2014 19:33:59 +0000 (+0000) Subject: addu -> PTR_ADDU when doing address arithmetic in the octeon-specific code path. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a70bdec48425f49bf6f51e201717dcf2c5d62182;p=openbsd addu -> PTR_ADDU when doing address arithmetic in the octeon-specific code path. --- diff --git a/sys/arch/mips64/mips64/tlbhandler.S b/sys/arch/mips64/mips64/tlbhandler.S index c5c4c123ba7..604a0e5245a 100644 --- a/sys/arch/mips64/mips64/tlbhandler.S +++ b/sys/arch/mips64/mips64/tlbhandler.S @@ -1,4 +1,4 @@ -/* $OpenBSD: tlbhandler.S,v 1.43 2014/04/09 21:10:35 miod Exp $ */ +/* $OpenBSD: tlbhandler.S,v 1.44 2014/08/12 19:33:59 miod Exp $ */ /* * Copyright (c) 1995-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -397,7 +397,7 @@ LEAF(tlb_flush, 0) #ifdef CPU_OCTEON PTR_SLL ta2, ta1, PAGE_SHIFT + 1 - addu v0, v0, ta2 + PTR_ADDU v0, v0, ta2 #else dmtc0 v0, COP_0_TLB_HI # Mark entry high as invalid #endif @@ -411,7 +411,7 @@ LEAF(tlb_flush, 0) mtc0 ta1, COP_0_TLB_INDEX # Set the index register. #ifdef CPU_OCTEON dmtc0 v0, COP_0_TLB_HI # Mark entry high as invalid - addu v0, v0, 2 * PAGE_SIZE + PTR_ADDU v0, v0, 2 * PAGE_SIZE #endif addu ta1, ta1, 1 # Increment index. TLB_HAZARD @@ -456,7 +456,7 @@ LEAF(tlb_flush_addr, 0) nop #ifdef CPU_OCTEON PTR_SLL ta2, v0, PAGE_SHIFT + 1 - addu ta1, ta1, ta2 + PTR_ADDU ta1, ta1, ta2 #endif dmtc0 ta1, COP_0_TLB_HI # Mark entry high as invalid