diff options
author | Richard Braun <rbraun@sceen.net> | 2012-10-10 21:18:28 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2012-10-10 21:18:28 +0200 |
commit | e2955084048dac30b081b62ba27d0282079dd01a (patch) | |
tree | 82cfe89dc0ea9725ff3e972e6189d1070023b385 /kern/init.h | |
parent | cceb9712ab7e66fb64d07cd575d5a743e86e2972 (diff) |
x86: rework the linker script
Merge the .boot section into the .init section, and set the .init
section at physical addresses.
Diffstat (limited to 'kern/init.h')
-rw-r--r-- | kern/init.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/kern/init.h b/kern/init.h index a3128d75..e9762724 100644 --- a/kern/init.h +++ b/kern/init.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Richard Braun. + * Copyright (c) 2010, 2012 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,8 +24,13 @@ * These sections should contain code and data which can be discarded once * kernel initialization is done. */ -#define __init __section(".init") -#define __initrodata __section(".initrodata") -#define __initdata __section(".initdata") +#define __init __section(".init.text") +#define __initdata __section(".init.data") + +/* + * Boundaries of the .init section. + */ +extern char _init; +extern char _einit; #endif /* _KERN_INIT_H */ |