diff options
author | Richard Braun <rbraun@sceen.net> | 2017-09-03 14:00:15 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-09-03 14:00:15 +0200 |
commit | 5774eb4713e252bd35832c163b0f2b117176c2de (patch) | |
tree | 54f337f304f26d5d166e31384d6b32126f296153 /kern/init.h | |
parent | 608cf884efd9bb0ef6a308814fd22b1c8688fabf (diff) |
x86: import macros from the init module
Diffstat (limited to 'kern/init.h')
-rw-r--r-- | kern/init.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kern/init.h b/kern/init.h index d15d950..8f1cacf 100644 --- a/kern/init.h +++ b/kern/init.h @@ -16,8 +16,6 @@ * * * Init sections and operations. - * - * TODO Make the x86 linker script use macros from this header. */ #ifndef _KERN_INIT_H @@ -36,6 +34,12 @@ */ #define INIT_OPS_SECTION .init.ops +/* + * Alignment is important to make sure initialization operations are + * stored as a C array in the reserved init op section. + */ +#define INIT_OP_ALIGN 64 + #ifndef __ASSEMBLER__ #include <kern/error.h> |