From 2adef874eedf846fc8a58e91dd04026174d24def Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Sat, 16 May 2020 18:44:35 -0700 Subject: [PATCH] [boot] Make sure the kernel entrypoint abi is sysv Adding this now because I'm sure I'll forget later. Make sure to annotate the entrypoint function pointer as `__attribute__((sysv_abi))` so that it's not called via ms abi like the rest of the loader. --- src/include/kernel_args.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/kernel_args.h b/src/include/kernel_args.h index 6fd2ccc..7cc03e8 100644 --- a/src/include/kernel_args.h +++ b/src/include/kernel_args.h @@ -84,6 +84,6 @@ __attribute__((aligned(alignof(max_align_t)))); } // namespace args -using entrypoint = void (*)(args::header *); +using entrypoint = __attribute__((sysv_abi)) void (*)(args::header *); } // namespace kernel