From 3a9c0e1165315f43aa73856c3b8d59b4d1375e85 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 20 Apr 2017 10:03:40 +0000 Subject: [PATCH] Use register names without the % prefix in the global register variable declarations since clang doesn't register the %-prefixed ones. --- sys/arch/sparc64/include/cpu.h | 4 ++-- sys/arch/sparc64/include/tcb.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h index 570d5dc5152..d090108b7df 100644 --- a/sys/arch/sparc64/include/cpu.h +++ b/sys/arch/sparc64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.89 2016/08/17 11:09:01 dlg Exp $ */ +/* $OpenBSD: cpu.h,v 1.90 2017/04/20 10:03:40 kettenis Exp $ */ /* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */ /* @@ -171,7 +171,7 @@ extern struct cpu_info *cpus; #ifdef MULTIPROCESSOR -register struct cpu_info *__curcpu asm ("%g7"); +register struct cpu_info *__curcpu asm ("g7"); #define curcpu() (__curcpu->ci_self) #define cpu_number() (__curcpu->ci_number) diff --git a/sys/arch/sparc64/include/tcb.h b/sys/arch/sparc64/include/tcb.h index b91974bb56d..c1fef0d4f6b 100644 --- a/sys/arch/sparc64/include/tcb.h +++ b/sys/arch/sparc64/include/tcb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tcb.h,v 1.6 2016/09/17 15:56:58 guenther Exp $ */ +/* $OpenBSD: tcb.h,v 1.7 2017/04/20 10:03:40 kettenis Exp $ */ /* * Copyright (c) 2011 Philip Guenther @@ -36,7 +36,7 @@ /* ELF TLS ABI calls for big TCB, with static TLS data at negative offsets */ #define TLS_VARIANT 2 -register void *__tcb __asm__ ("%g7"); +register void *__tcb __asm__ ("g7"); #define TCB_GET() (__tcb) #define TCB_SET(tcb) ((__tcb) = (tcb)) -- 2.20.1