Skip to content

Commit 1a0061b

Browse files
committed
'a' constraint for output
as noted in implementation, all but sp
1 parent 03bb2b8 commit 1a0061b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cores/esp8266/core_esp8266_spi_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ namespace experimental {
5454
#define PRELOAD_DST_SRC(DST,SRC)\
5555
__asm__ __volatile__ (\
5656
"mov %0, %1\n\t"\
57-
: "=r"(DST)\
57+
: "=a"(DST)\
5858
: "r"(SRC)\
5959
: "memory")
6060

6161
#define PRELOAD_IMMEDIATE(DST,SRC)\
6262
uint32_t DST;\
6363
__asm__ __volatile__ (\
6464
"movi %0, %1\n\t"\
65-
: "=r"(DST)\
65+
: "=a"(DST)\
6666
: "i"(SRC)\
6767
: "memory")
6868

0 commit comments

Comments
 (0)