diff options
author | Thomas Huth <thuth@redhat.com> | 2021-05-12 19:15:48 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2021-05-14 12:38:43 +0200 |
commit | 052b66e7211af64964e005126eaa3c944b296b0e (patch) | |
tree | dad310fc0688009b2259ca72e9426ced70e6c4ef /pc-bios/s390-ccw/menu.c | |
parent | 2ed765fdeed88cb5434148f0d6ef27ece3dc063c (diff) |
pc-bios/s390-ccw: Fix inline assembly for older versions of Clang
Clang versions before v11.0 insist on having the %rX or %cX register
names instead of just a number. Since our Travis-CI is currently
still using Clang v6.0, we have to fix this to avoid failing jobs.
Message-Id: <20210512171550.476130-2-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'pc-bios/s390-ccw/menu.c')
-rw-r--r-- | pc-bios/s390-ccw/menu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pc-bios/s390-ccw/menu.c b/pc-bios/s390-ccw/menu.c index de8260a5d6..d601952d3e 100644 --- a/pc-bios/s390-ccw/menu.c +++ b/pc-bios/s390-ccw/menu.c @@ -36,9 +36,9 @@ static inline void enable_clock_int(void) uint64_t tmp = 0; asm volatile( - "stctg 0,0,%0\n" + "stctg %%c0,%%c0,%0\n" "oi 6+%0, 0x8\n" - "lctlg 0,0,%0" + "lctlg %%c0,%%c0,%0" : : "Q" (tmp) : "memory" ); } @@ -48,9 +48,9 @@ static inline void disable_clock_int(void) uint64_t tmp = 0; asm volatile( - "stctg 0,0,%0\n" + "stctg %%c0,%%c0,%0\n" "ni 6+%0, 0xf7\n" - "lctlg 0,0,%0" + "lctlg %%c0,%%c0,%0" : : "Q" (tmp) : "memory" ); } |