diff options
author | Richard Braun <rbraun@sceen.net> | 2012-12-31 01:30:28 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2012-12-31 01:30:28 +0100 |
commit | 0025db693f77db61906ef8a310df77c02b5504b1 (patch) | |
tree | 01f18309de957aca435653cc1378749a2dd77dd5 /kern/init.h | |
parent | 9cdb5250e78b7cf7c6cd9e471bcdf456fb6dd9cc (diff) |
kern/init: adjust for use in assembly code
Diffstat (limited to 'kern/init.h')
-rw-r--r-- | kern/init.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/kern/init.h b/kern/init.h index 6e437c0a..6f33edc8 100644 --- a/kern/init.h +++ b/kern/init.h @@ -18,14 +18,19 @@ #ifndef _KERN_INIT_H #define _KERN_INIT_H -#include <kern/macros.h> - /* * These sections should contain code and data which can be discarded once * kernel initialization is done. */ -#define __init __section(".init.text") -#define __initdata __section(".init.data") +#define INIT_SECTION .init.text +#define INIT_DATA_SECTION .init.data + +#ifndef __ASSEMBLER__ + +#include <kern/macros.h> + +#define __init __section(QUOTE(INIT_SECTION)) +#define __initdata __section(QUOTE(INIT_DATA_SECTION)) /* * Boundaries of the .init section. @@ -33,4 +38,6 @@ extern char _init; extern char _einit; +#endif /* __ASSEMBLER__ */ + #endif /* _KERN_INIT_H */ |