Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/aarch64/aarch64 clang assembler evaluates #'\r' as ...



details:   https://anonhg.NetBSD.org/src/rev/703f9eddc709
branches:  trunk
changeset: 972432:703f9eddc709
user:      ryo <ryo%NetBSD.org@localhost>
date:      Tue May 26 09:16:33 2020 +0000

description:
clang assembler evaluates #'\r' as #0x72. Grrr

diffstat:

 sys/arch/aarch64/aarch64/locore.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 315ba11780bc -r 703f9eddc709 sys/arch/aarch64/aarch64/locore.S
--- a/sys/arch/aarch64/aarch64/locore.S Tue May 26 08:39:27 2020 +0000
+++ b/sys/arch/aarch64/aarch64/locore.S Tue May 26 09:16:33 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.61 2020/05/26 07:23:57 ryo Exp $  */
+/*     $NetBSD: locore.S,v 1.62 2020/05/26 09:16:33 ryo Exp $  */
 
 /*
  * Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -38,7 +38,7 @@
 #include <aarch64/hypervisor.h>
 #include "assym.h"
 
-RCSID("$NetBSD: locore.S,v 1.61 2020/05/26 07:23:57 ryo Exp $")
+RCSID("$NetBSD: locore.S,v 1.62 2020/05/26 09:16:33 ryo Exp $")
 
 #ifdef AARCH64_DEVICE_MEM_STRONGLY_ORDERED
 #define        MAIR_DEVICE_MEM         MAIR_DEVICE_nGnRnE
@@ -574,7 +574,7 @@
 1:
        cmp     x0, #'\n'
        bne     2f
-       mov     x0, #'\r'
+       mov     x0, #0x0d       /* '\r' */
        bl      uartputc
        mov     x0, #'\n'
 2:
@@ -680,7 +680,7 @@
        cmp     x0, #'\n'
        bne     1f
        /* '\n' -> '\r', '\n' */
-       mov     x0, #'\r'
+       mov     x0, #0x0d       /* '\r' */
        bl      uartputc
        mov     x0, #'\n'
 1:



Home | Main Index | Thread Index | Old Index