From db7bb413146f2a302579ff796507c059e25d22b1 Mon Sep 17 00:00:00 2001 From: Damon Lee Date: Wed, 2 Jun 2021 11:51:19 +1000 Subject: [PATCH] trivial: Extend !__ASSEMBLER__ preprocessor flag The scheduler context flags enum should not be inside assembler-related files. Signed-off-by: Damon Lee --- libsel4/include/sel4/constants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsel4/include/sel4/constants.h b/libsel4/include/sel4/constants.h index 6bb3afa25..77371167b 100644 --- a/libsel4/include/sel4/constants.h +++ b/libsel4/include/sel4/constants.h @@ -92,7 +92,6 @@ static inline seL4_Word seL4_MaxExtraRefills(seL4_Word size) { return (LIBSEL4_BIT(size) - seL4_CoreSchedContextBytes) / seL4_RefillSizeBytes; } -#endif /* !__ASSEMBLER__ */ /* Flags to be used with seL4_SchedControl_ConfigureFlags */ typedef enum { @@ -101,6 +100,7 @@ typedef enum { SEL4_FORCE_LONG_ENUM(seL4_SchedContextFlag), } seL4_SchedContextFlag; +#endif /* !__ASSEMBLER__ */ #endif /* CONFIG_KERNEL_MCS */ #ifdef CONFIG_KERNEL_INVOCATION_REPORT_ERROR_IPC