diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:19:13 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:19:13 -0400 |
commit | e7f93a355c7e32c26eab8910cf53b7506bb046c5 (patch) | |
tree | 0f4f2e60423a2c4c70134e6734b57b97e277af65 /arch/sh/boot | |
parent | adf1890b0cd63f754b2171b73e4d845c0950d407 (diff) |
sh: Make PAGE_OFFSET configurable.
nommu needs to be able to shift PAGE_OFFSET, so we switch it to a
non-user-visible CONFIG_PAGE_OFFSET and use that in the few places
where it matters.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boot')
-rw-r--r-- | arch/sh/boot/compressed/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/boot/compressed/Makefile b/arch/sh/boot/compressed/Makefile index 75a6876bf6c6..7074267c01b7 100644 --- a/arch/sh/boot/compressed/Makefile +++ b/arch/sh/boot/compressed/Makefile | |||
@@ -18,9 +18,10 @@ endif | |||
18 | # Assign dummy values if these 2 variables are not defined, | 18 | # Assign dummy values if these 2 variables are not defined, |
19 | # in order to suppress error message. | 19 | # in order to suppress error message. |
20 | # | 20 | # |
21 | CONFIG_PAGE_OFFSET ?= 0x80000000 | ||
21 | CONFIG_MEMORY_START ?= 0x0c000000 | 22 | CONFIG_MEMORY_START ?= 0x0c000000 |
22 | CONFIG_BOOT_LINK_OFFSET ?= 0x00800000 | 23 | CONFIG_BOOT_LINK_OFFSET ?= 0x00800000 |
23 | IMAGE_OFFSET := $(shell printf "0x%8x" $$[0x80000000+$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)]) | 24 | IMAGE_OFFSET := $(shell printf "0x%8x" $$[$(CONFIG_PAGE_OFFSET)+$(CONFIG_MEMORY_START)+$(CONFIG_BOOT_LINK_OFFSET)]) |
24 | 25 | ||
25 | LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup -T $(obj)/../../kernel/vmlinux.lds | 26 | LDFLAGS_vmlinux := -Ttext $(IMAGE_OFFSET) -e startup -T $(obj)/../../kernel/vmlinux.lds |
26 | 27 | ||