Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/bcm53xx If this is a BE kernel, force oursel...



details:   https://anonhg.NetBSD.org/src/rev/0909c12fb348
branches:  trunk
changeset: 789015:0909c12fb348
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Aug 04 01:02:01 2013 +0000

description:
If this is a BE kernel, force ourselves into BE just in case we aren't.
(setting SCTRL[EE] is done elsewhere).

diffstat:

 sys/arch/evbarm/bcm53xx/bcm53xx_start.S |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r e5ef1b9f3773 -r 0909c12fb348 sys/arch/evbarm/bcm53xx/bcm53xx_start.S
--- a/sys/arch/evbarm/bcm53xx/bcm53xx_start.S   Sun Aug 04 00:59:46 2013 +0000
+++ b/sys/arch/evbarm/bcm53xx/bcm53xx_start.S   Sun Aug 04 01:02:01 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm53xx_start.S,v 1.6 2013/06/30 22:02:29 matt Exp $   */
+/*     $NetBSD: bcm53xx_start.S,v 1.7 2013/08/04 01:02:01 matt Exp $   */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -45,7 +45,7 @@
 #define        CONADDR         0x18000300
 #endif
 
-RCSID("$NetBSD: bcm53xx_start.S,v 1.6 2013/06/30 22:02:29 matt Exp $")
+RCSID("$NetBSD: bcm53xx_start.S,v 1.7 2013/08/04 01:02:01 matt Exp $")
 
 #undef VERBOSE_INIT_ARM
 #define VERBOSE_INIT_ARM
@@ -68,6 +68,9 @@
 
        .global _C_LABEL(bcm53xx_start)
 _C_LABEL(bcm53xx_start):
+#ifdef __ARMEB__
+       setend  be              /* make sure we are running big endian */
+#endif
        /*
         * Save any arguments u-boot passed us.
         */



Home | Main Index | Thread Index | Old Index