Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm Simplify #ifdefs



details:   https://anonhg.NetBSD.org/src/rev/32bb872e71cb
branches:  trunk
changeset: 333328:32bb872e71cb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Oct 29 16:14:45 2014 +0000

description:
Simplify #ifdefs

diffstat:

 sys/arch/arm/arm/cpufunc_asm_arm11.S |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 5a4d92355f2c -r 32bb872e71cb sys/arch/arm/arm/cpufunc_asm_arm11.S
--- a/sys/arch/arm/arm/cpufunc_asm_arm11.S      Wed Oct 29 14:41:57 2014 +0000
+++ b/sys/arch/arm/arm/cpufunc_asm_arm11.S      Wed Oct 29 16:14:45 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpufunc_asm_arm11.S,v 1.15 2014/07/31 10:44:58 skrll Exp $     */
+/*     $NetBSD: cpufunc_asm_arm11.S,v 1.16 2014/10/29 16:14:45 skrll Exp $     */
 
 /*
  * Copyright (c) 2002, 2005 ARM Limited
@@ -68,12 +68,10 @@
         * We can assume that the caches will only contain kernel addresses
         * at this point.  So no need to flush them again.
         */
-#ifdef ARM_MMU_EXTENDED
-       cmp     r1, #0
-#endif
        mcr     p15, 0, r0, c7, c10, 4  /* drain the write buffer */
        mcr     p15, 0, r0, c2, c0, 0   /* set the new TTBR0 */
 #ifdef ARM_MMU_EXTENDED
+       cmp     r1, #0
        mcreq   p15, 0, r0, c2, c0, 1   /* set the new TTBR1 */
 #else
        mcr     p15, 0, r0, c8, c7, 0   /* and flush the I+D tlbs */



Home | Main Index | Thread Index | Old Index