Skip to content

Commit

Permalink
m68knommu: Don't hardcode the value of PAGE_SIZE in the linker script.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
  • Loading branch information
Tim Abbott authored and Greg Ungerer committed Dec 4, 2009
1 parent 10f204e commit f4bed4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/m68knommu/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
*/

#include <asm-generic/vmlinux.lds.h>
#include <asm/page.h>

#if defined(CONFIG_RAMKERNEL)
#define RAM_START CONFIG_KERNELBASE
Expand Down Expand Up @@ -155,7 +156,7 @@ SECTIONS {
} > DATA

.init : {
. = ALIGN(4096);
. = ALIGN(PAGE_SIZE);
__init_begin = .;
_sinittext = .;
INIT_TEXT
Expand All @@ -180,7 +181,7 @@ SECTIONS {
*(.init.ramfs)
__initramfs_end = .;
#endif
. = ALIGN(4096);
. = ALIGN(PAGE_SIZE);
__init_end = .;
} > INIT

Expand Down

0 comments on commit f4bed4f

Please sign in to comment.