diff --git a/sys/arch/amd64/include/cpu.h b/sys/arch/amd64/include/cpu.h index ea06d91ecd78..e47a798b4fa4 100644 --- a/sys/arch/amd64/include/cpu.h +++ b/sys/arch/amd64/include/cpu.h @@ -1,4 +1,4 @@ -/* $NetBSD: cpu.h,v 1.70 2021/11/02 11:26:03 ryo Exp $ */ +/* $NetBSD: cpu.h,v 1.71 2023/04/09 08:17:56 riastradh Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -53,7 +53,7 @@ x86_curcpu(void) { struct cpu_info *ci; - __asm volatile("movq %%gs:%1, %0" : + __asm("movq %%gs:%1, %0" : "=r" (ci) : "m" (*(struct cpu_info * const *)offsetof(struct cpu_info, ci_self))); @@ -65,7 +65,7 @@ x86_curlwp(void) { lwp_t *l; - __asm volatile("movq %%gs:%1, %0" : + __asm("movq %%gs:%1, %0" : "=r" (l) : "m" (*(struct cpu_info * const *)offsetof(struct cpu_info, ci_curlwp)));