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 Misc. tidyup



details:   https://anonhg.NetBSD.org/src/rev/bf9a5f90d115
branches:  trunk
changeset: 447147:bf9a5f90d115
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Jan 02 16:17:15 2019 +0000

description:
Misc. tidyup

diffstat:

 sys/arch/arm/arm/armv6_start.S |  36 +++++++++---------------------------
 1 files changed, 9 insertions(+), 27 deletions(-)

diffs (65 lines):

diff -r 60574c7b8dc4 -r bf9a5f90d115 sys/arch/arm/arm/armv6_start.S
--- a/sys/arch/arm/arm/armv6_start.S    Wed Jan 02 16:13:49 2019 +0000
+++ b/sys/arch/arm/arm/armv6_start.S    Wed Jan 02 16:17:15 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: armv6_start.S,v 1.2 2019/01/02 14:31:33 skrll Exp $    */
+/*     $NetBSD: armv6_start.S,v 1.3 2019/01/02 16:17:15 skrll Exp $    */
 
 /*-
  * Copyright (c) 2012, 2017, 2018 The NetBSD Foundation, Inc.
@@ -667,16 +667,15 @@
 
 
 #if 0
-//XXXNH FreeBSD
 
-288    /*
-289     * Set TEX remap registers
-290     *  - All is set to uncacheable memory
-291     */
-292    ldr     r0, =0xAAAAA
-293    mcr     CP15_PRRR(r0)
-294    mov     r0, #0
-295    mcr     CP15_NMRR(r0)
+/*
+ * Set TEX remap registers
+ *  - All is set to uncacheable memory
+ */
+       ldr     r0, =0xAAAAA
+       mcr     CP15_PRRR(r0)
+       mov     r0, #0
+       mcr     CP15_NMRR(r0)
 #endif
 
        XPUTC(#'I')
@@ -758,16 +757,6 @@
        XPUTC('\n')
        XPUTC('\r')
 
-#if 0
-       // We haven't used anything from memory yet so we can invalidate the
-       // L1 cache without fear of losing valuable data.  Afterwards, we can
-       // flush icache without worrying about anything getting written back
-       // to memory.
-       bl      armv7_dcache_l1inv_all          // toss-dcache
-       bl      armv7_icache_inv_all            // toss i-cache after d-cache
-
-#endif
-
        // disables and clears caches
        bl      armv7_init
 
@@ -970,13 +959,6 @@
        nop
        nop
 
-#if 0
-       VPRINTF("MMU\n\r")
-
-       VPRINTX(r4)
-       VPRINTF("\n\r")
-#endif
-
        mov     pc, r4
 
        .ltorg



Home | Main Index | Thread Index | Old Index