[PATCH] Semihosting ctr0 typo (adr/ldr)?
iNvEr7
iNvEr7@protonmail.com
Tue Feb 16 22:56:23 GMT 2021
>From c0d80dfc1b832d690263af93231041ae7bb3f68e Mon Sep 17 00:00:00 2001
From: iNvEr7 <iNvEr7@protonmail.com>
Date: Tue, 16 Feb 2021 14:53:52 -0800
Subject: [PATCH] fix semihosting typo
---
libgloss/arm/crt0.S | 2 +-
newlib/libc/sys/arm/crt0.S | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libgloss/arm/crt0.S b/libgloss/arm/crt0.S
index 8490bde2f..b8bbcee18 100644
--- a/libgloss/arm/crt0.S
+++ b/libgloss/arm/crt0.S
@@ -283,7 +283,7 @@
#ifdef ARM_RDI_MONITOR
/* Issue Angel SWI to read stack info. */
movs r0, #AngelSWI_Reason_HeapInfo
- adr r1, .LC0 /* Point at ptr to 4 words to receive data. */
+ ldr r1, .LC0 /* Point at ptr to 4 words to receive data. */
#ifdef THUMB_VXM
bkpt AngelSWI
#elif defined(__thumb2__)
diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S
index 5e677a23c..3c5771229 100644
--- a/newlib/libc/sys/arm/crt0.S
+++ b/newlib/libc/sys/arm/crt0.S
@@ -270,7 +270,7 @@
#ifdef ARM_RDI_MONITOR
/* Issue Angel SWI to read stack info. */
movs r0, #AngelSWI_Reason_HeapInfo
- adr r1, .LC0 /* Point at ptr to 4 words to receive data. */
+ ldr r1, .LC0 /* Point at ptr to 4 words to receive data. */
#ifdef THUMB_VXM
bkpt AngelSWI
#elif defined(__thumb2__)
--
2.29.2
More information about the Newlib
mailing list