From cd9dc06d21a57b8632da4d02a9f3c4eb7c8f25dd Mon Sep 17 00:00:00 2001 From: sigsegv7 Date: Thu, 28 Sep 2023 18:41:52 -0400 Subject: kernel: cdefs: Wrap assembly within conditional This commit wraps __KERNEL_META for .S files within a conditional. Only makes it easier to trace if on a different architecture and it is not implemented for it; however, this macro could perhaps be placed in a better header (XXX)? This should work for now. Signed-off-by: sigsegv7 --- sys/include/sys/cdefs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/include/sys/cdefs.h b/sys/include/sys/cdefs.h index a17c4ef..acfda84 100644 --- a/sys/include/sys/cdefs.h +++ b/sys/include/sys/cdefs.h @@ -146,12 +146,17 @@ #else +/* + * XXX: Will work; however, maybe move this?? + */ +#if defined(__x86_64__) .macro __KERNEL_META meta_str .section .meta.note .align 4 .string "\meta_str" .previous .endm +#endif /* defined(__x86_64__) */ #endif /* !defined(__ASSEMBLER__) */ #endif /* !_SYS_CDEFS_H_ */ -- cgit v1.2.3