Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/vexpress fix xputc for big endian



details:   https://anonhg.NetBSD.org/src/rev/aff7730c7f65
branches:  trunk
changeset: 833110:aff7730c7f65
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Jun 11 19:42:22 2018 +0000

description:
fix xputc for big endian

diffstat:

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

diffs (28 lines):

diff -r e155d652b24f -r aff7730c7f65 sys/arch/evbarm/vexpress/vexpress_start.S
--- a/sys/arch/evbarm/vexpress/vexpress_start.S Mon Jun 11 19:40:05 2018 +0000
+++ b/sys/arch/evbarm/vexpress/vexpress_start.S Mon Jun 11 19:42:22 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vexpress_start.S,v 1.6 2018/03/03 13:46:33 skrll Exp $ */
+/*     $NetBSD: vexpress_start.S,v 1.7 2018/06/11 19:42:22 jakllsch Exp $      */
 
 /*-
  * Copyright (c) 2015 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
 
 #include <arm/vexpress/vexpress_platform.h>
 
-RCSID("$NetBSD: vexpress_start.S,v 1.6 2018/03/03 13:46:33 skrll Exp $")
+RCSID("$NetBSD: vexpress_start.S,v 1.7 2018/06/11 19:42:22 jakllsch Exp $")
 
 #ifdef VERBOSE_INIT_ARM
 #define        XPUTC(n)        mov r0, n; bl xputc
@@ -139,6 +139,9 @@
 xputc:
        movw    r2, #0x0000
        movt    r2, #0x1c09
+#ifdef __ARMEB__
+       lsl     r0, r0, #24
+#endif
        str     r0, [r2]
        bx      lr
 



Home | Main Index | Thread Index | Old Index