From: claudio Date: Tue, 6 Aug 2024 05:39:48 +0000 (+0000) Subject: Define _LOCORE before including machine/ctlreg.h in ASM code. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c812a2a431dcdad903e54d5c35bc58020575bfe1;p=openbsd Define _LOCORE before including machine/ctlreg.h in ASM code. OK miod@ kettenis@ --- diff --git a/regress/sys/arch/sparc64/emul-ldqstq/asi/asi_asm.S b/regress/sys/arch/sparc64/emul-ldqstq/asi/asi_asm.S index 7e50b1fb894..0d90491ea76 100644 --- a/regress/sys/arch/sparc64/emul-ldqstq/asi/asi_asm.S +++ b/regress/sys/arch/sparc64/emul-ldqstq/asi/asi_asm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: asi_asm.S,v 1.2 2003/07/12 07:09:25 jason Exp $ */ +/* $OpenBSD: asi_asm.S,v 1.3 2024/08/06 05:39:48 claudio Exp $ */ /* * Copyright (c) 2003 Jason L. Wright (jason@thought.net) @@ -27,6 +27,7 @@ */ #include +#define _LOCORE #include /* void asm_ldq_asi(int asi, struct fpquad *r) %f0 = *r */ diff --git a/regress/sys/arch/sparc64/emul-ldqstq/simm13/genasm.pl b/regress/sys/arch/sparc64/emul-ldqstq/simm13/genasm.pl index 1729ad0dfe5..f714ca3a0b3 100644 --- a/regress/sys/arch/sparc64/emul-ldqstq/simm13/genasm.pl +++ b/regress/sys/arch/sparc64/emul-ldqstq/simm13/genasm.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: genasm.pl,v 1.2 2003/07/13 06:39:44 jason Exp $ +# $OpenBSD: genasm.pl,v 1.3 2024/08/06 05:39:48 claudio Exp $ # # Copyright (c) 2003 Jason L. Wright (jason@thought.net) # All rights reserved. @@ -27,6 +27,7 @@ # print "#include \n"; +print "#define _LOCORE\n"; print "#include \n\n"; for ($i = -4096; $i <= 4095; $i++) { diff --git a/regress/sys/arch/sparc64/emul-ldqstq/simm13/genc.pl b/regress/sys/arch/sparc64/emul-ldqstq/simm13/genc.pl index e8c771392dd..e0d6ea680dd 100644 --- a/regress/sys/arch/sparc64/emul-ldqstq/simm13/genc.pl +++ b/regress/sys/arch/sparc64/emul-ldqstq/simm13/genc.pl @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: genc.pl,v 1.4 2004/08/05 11:39:37 art Exp $ +# $OpenBSD: genc.pl,v 1.5 2024/08/06 05:39:48 claudio Exp $ # # Copyright (c) 2003 Jason L. Wright (jason@thought.net) # All rights reserved. @@ -29,6 +29,8 @@ print < +#include +#include #include #include "fpregs.h"