summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/spectre.S5
-rw-r--r--sys/arch/amd64/trap.S4
-rw-r--r--sys/include/sys/cdefs.h9
3 files changed, 18 insertions, 0 deletions
diff --git a/sys/arch/amd64/spectre.S b/sys/arch/amd64/spectre.S
index f91f744..f93c67e 100644
--- a/sys/arch/amd64/spectre.S
+++ b/sys/arch/amd64/spectre.S
@@ -27,6 +27,11 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
+ #include <sys/cdefs.h>
+
+__KERNEL_META "$Vega$: spectre.S, Ian Marco Moffett, \
+ Spectre mitigation detection"
+
.text
.globl __can_mitigate_spectre
diff --git a/sys/arch/amd64/trap.S b/sys/arch/amd64/trap.S
index d10c0b3..8c428de 100644
--- a/sys/arch/amd64/trap.S
+++ b/sys/arch/amd64/trap.S
@@ -29,6 +29,10 @@
#include <machine/frame.h>
#include <machine/trap.h>
+#include <sys/cdefs.h>
+
+__KERNEL_META "$Vega$: trap.S, Ian Marco Moffett, \
+ Trap handling routines"
.text
.globl breakpoint_handler
diff --git a/sys/include/sys/cdefs.h b/sys/include/sys/cdefs.h
index bec4431..a17c4ef 100644
--- a/sys/include/sys/cdefs.h
+++ b/sys/include/sys/cdefs.h
@@ -144,5 +144,14 @@
#define __MODULE_NAME(name) \
__used static const char *__THIS_MODULE = name
+#else
+
+.macro __KERNEL_META meta_str
+ .section .meta.note
+ .align 4
+ .string "\meta_str"
+ .previous
+.endm
+
#endif /* !defined(__ASSEMBLER__) */
#endif /* !_SYS_CDEFS_H_ */