diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-25 20:44:44 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-25 20:50:25 +0200 |
commit | 9ded7917da06dea7f7284648281fd5d827f8a9a4 (patch) | |
tree | 75ab1d8d1b4d89ceb6d17563367c40446c865521 /arch/x86/machine/boot.h | |
parent | 5ee8402d3746e1e7831f6094aa07d29c5306b416 (diff) |
Use the C11 alignas and noreturn macros
Diffstat (limited to 'arch/x86/machine/boot.h')
-rw-r--r-- | arch/x86/machine/boot.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/machine/boot.h b/arch/x86/machine/boot.h index 7a4d85d0..8c590c64 100644 --- a/arch/x86/machine/boot.h +++ b/arch/x86/machine/boot.h @@ -18,6 +18,8 @@ #ifndef _X86_BOOT_H #define _X86_BOOT_H +#include <stdnoreturn.h> + #include <kern/macros.h> #include <machine/page.h> #include <machine/pmap.h> @@ -99,7 +101,7 @@ void * boot_memcpy(void *dest, const void *src, size_t n); void * boot_memmove(void *dest, const void *src, size_t n); void * boot_memset(void *s, int c, size_t n); size_t boot_strlen(const char *s); -void __noreturn boot_panic(const char *s); +noreturn void boot_panic(const char *s); /* * This function is called by the bootstrap code before paging is enabled. |