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 Use bcopyinout_xscale.S for armv6+ platform...



details:   https://anonhg.NetBSD.org/src/rev/73618f47bbd1
branches:  trunk
changeset: 780609:73618f47bbd1
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Jul 31 06:54:16 2012 +0000

description:
Use bcopyinout_xscale.S for armv6+ platforms since they have the
needed instructions.

diffstat:

 sys/arch/arm/arm/bcopyinout.S |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0237825707b9 -r 73618f47bbd1 sys/arch/arm/arm/bcopyinout.S
--- a/sys/arch/arm/arm/bcopyinout.S     Mon Jul 30 23:56:48 2012 +0000
+++ b/sys/arch/arm/arm/bcopyinout.S     Tue Jul 31 06:54:16 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcopyinout.S,v 1.17 2009/01/18 01:19:32 bjh21 Exp $    */
+/*     $NetBSD: bcopyinout.S,v 1.18 2012/07/31 06:54:16 matt Exp $     */
 
 /*
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -43,11 +43,15 @@
 #include <machine/asm.h>
 #include <machine/cpu.h>
 
-#ifdef __XSCALE__
+#if defined(__XSCALE__) || defined(_ARM_ARCH_6)
+/*
+ * armv6 and v7 have pld and strd so they can use the xscale
+ * bcopyinout as well.
+ */
 #include "bcopyinout_xscale.S"
 #else
 
-RCSID("$NetBSD: bcopyinout.S,v 1.17 2009/01/18 01:19:32 bjh21 Exp $")  
+RCSID("$NetBSD: bcopyinout.S,v 1.18 2012/07/31 06:54:16 matt Exp $")   
 
        .text
        .align  0



Home | Main Index | Thread Index | Old Index