aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorsigsegv7 <ian@vegaa.systems>2023-09-28 18:41:52 -0400
committersigsegv7 <ian@vegaa.systems>2023-09-28 18:41:52 -0400
commitcd9dc06d21a57b8632da4d02a9f3c4eb7c8f25dd (patch)
tree4bae3c13703540ea91c6fa1791e5d25c53eadd77 /sys/include
parentb135754fd9f9bc28dcbc99e82f6eaa381d46204e (diff)
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 <ian@vegaa.systems>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/cdefs.h5
1 files changed, 5 insertions, 0 deletions
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_ */