summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-09-11 05:38:52 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-09-11 05:38:52 +0000
commitf85380952fa2d90ee24cf6824bb7e7c1b64b6151 (patch)
tree890841c5507c4a46c0b4f63c3b29d08d0defdfa8 /sys/arch
parentd40363e57beb28182442494f318f783792bf1b4c (diff)
Remove whitespace in inline assembly output constraint strings. While
gcc is documented as ignoring whitespace in any position but the first clang gives "error: invalid output constraint '=r ' in asm".
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/arm/mainbus/mainbus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/mainbus/mainbus.c b/sys/arch/arm/mainbus/mainbus.c
index 3d36366c95b..bbe8f12385c 100644
--- a/sys/arch/arm/mainbus/mainbus.c
+++ b/sys/arch/arm/mainbus/mainbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mainbus.c,v 1.18 2017/05/02 14:45:26 kettenis Exp $ */
+/* $OpenBSD: mainbus.c,v 1.19 2017/09/11 05:38:51 jsg Exp $ */
/*
* Copyright (c) 2016 Patrick Wildt <patrick@blueri.se>
* Copyright (c) 2017 Mark Kettenis <kettenis@openbsd.org>
@@ -253,7 +253,7 @@ mainbus_match_primary(struct device *parent, void *match, void *aux)
struct cfdata *cf = match;
uint32_t mpidr;
- __asm volatile("mrc p15, 0, %0, c0, c0, 5" : "=r " (mpidr));
+ __asm volatile("mrc p15, 0, %0, c0, c0, 5" : "=r" (mpidr));
if (fa->fa_nreg < 1 || fa->fa_reg[0].addr != (mpidr & MPIDR_AFF))
return 0;
@@ -268,7 +268,7 @@ mainbus_match_secondary(struct device *parent, void *match, void *aux)
struct cfdata *cf = match;
uint32_t mpidr;
- __asm volatile("mrc p15, 0, %0, c0, c0, 5" : "=r " (mpidr));
+ __asm volatile("mrc p15, 0, %0, c0, c0, 5" : "=r" (mpidr));
if (fa->fa_nreg < 1 || fa->fa_reg[0].addr == (mpidr & MPIDR_AFF))
return 0;