Commit f959d985 authored by Russell King's avatar Russell King

[ARM] arch/arm/boot variable name consistency.

For clarity and consistency, use the same name for makefile and
linker symbols.
parent cb0622bc
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
ZSYSTEM = arch/arm/boot/zImage ZSYSTEM = arch/arm/boot/zImage
ZLDFLAGS =-p -X -T $(obj)/bootp.lds \ ZLDFLAGS =-p -X -T $(obj)/bootp.lds \
--defsym initrd_addr=$(INITRD_PHYS) \ --defsym initrd_phys=$(INITRD_PHYS) \
--defsym params=$(PARAMS_PHYS) --defsym params_phys=$(PARAMS_PHYS)
extra-y := bootp extra-y := bootp
......
...@@ -75,14 +75,14 @@ move: ldmia r4!, {r7 - r10} @ move 32-bytes at a time ...@@ -75,14 +75,14 @@ move: ldmia r4!, {r7 - r10} @ move 32-bytes at a time
.size _start, . - _start .size _start, . - _start
.type data,#object .type data,#object
data: .word initrd_addr @ destination initrd address data: .word initrd_phys @ destination initrd address
.word initrd_len @ initrd size .word initrd_len @ initrd size
.word 0x54410001 @ r4 = ATAG_CORE .word 0x54410001 @ r4 = ATAG_CORE
.word 0x54420005 @ r5 = ATAG_INITRD2 .word 0x54420005 @ r5 = ATAG_INITRD2
.word initrd_addr @ r6 .word initrd_phys @ r6
.word initrd_len @ r7 .word initrd_len @ r7
.word params @ r8 .word params_phys @ r8
.size data, . - _data .size data, . - _data
.type initrd_start,#object .type initrd_start,#object
......
...@@ -13,7 +13,6 @@ FONTC = drivers/video/console/font_acorn_8x8.c ...@@ -13,7 +13,6 @@ FONTC = drivers/video/console/font_acorn_8x8.c
# #
ifeq ($(CONFIG_ARCH_ACORN),y) ifeq ($(CONFIG_ARCH_ACORN),y)
OBJS += ll_char_wr.o font.o OBJS += ll_char_wr.o font.o
CFLAGS_misc.o := -DPARAMS_PHYS=$(PARAMS_PHYS)
endif endif
ifeq ($(CONFIG_ARCH_SHARK),y) ifeq ($(CONFIG_ARCH_SHARK),y)
...@@ -65,14 +64,24 @@ ZTEXTADDR := 0 ...@@ -65,14 +64,24 @@ ZTEXTADDR := 0
ZBSSADDR := ALIGN(4) ZBSSADDR := ALIGN(4)
endif endif
SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/LOAD_ADDR/$(ZRELADDR)/;s/BSS_START/$(ZBSSADDR)/ SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/BSS_START/$(ZBSSADDR)/
targets := vmlinux vmlinux.lds piggy piggy.gz piggy.o \ targets := vmlinux vmlinux.lds piggy piggy.gz piggy.o \
font.o head.o $(OBJS) font.o head.o $(OBJS)
EXTRA_CFLAGS := -fpic EXTRA_CFLAGS := -fpic
EXTRA_AFLAGS := EXTRA_AFLAGS :=
LDFLAGS_vmlinux := -p --no-undefined -X \ # Supply ZRELADDR, INITRD_PHYS and PARAMS_PHYS to the decompressor via
# linker symbols. We only define initrd_phys and params_phys if the
# machine class defined the corresponding makefile variable.
LDFLAGS_vmlinux := --defsym zreladdr=$(ZRELADDR)
ifneq ($(INITRD_PHYS),)
LDFLAGS_vmlinux += --defsym initrd_phys=$(INITRD_PHYS)
endif
ifneq ($(PARAMS_PHYS),)
LDFLAGS_vmlinux += --defsym params_phys=$(PARAMS_PHYS)
endif
LDFLAGS_vmlinux += -p --no-undefined -X \
$(shell $(CC) $(CFLAGS) --print-libgcc-file-name) -T $(shell $(CC) $(CFLAGS) --print-libgcc-file-name) -T
$(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.o \ $(obj)/vmlinux: $(obj)/vmlinux.lds $(obj)/$(HEAD) $(obj)/piggy.o \
......
...@@ -324,7 +324,7 @@ wont_overwrite: mov r0, r4 ...@@ -324,7 +324,7 @@ wont_overwrite: mov r0, r4
LC0: .word LC0 @ r1 LC0: .word LC0 @ r1
.word __bss_start @ r2 .word __bss_start @ r2
.word _end @ r3 .word _end @ r3
.word _load_addr @ r4 .word zreladdr @ r4
.word _start @ r5 .word _start @ r5
.word _got_start @ r6 .word _got_start @ r6
.word _got_end @ ip .word _got_end @ ip
......
...@@ -11,9 +11,6 @@ OUTPUT_ARCH(arm) ...@@ -11,9 +11,6 @@ OUTPUT_ARCH(arm)
ENTRY(_start) ENTRY(_start)
SECTIONS SECTIONS
{ {
. = LOAD_ADDR;
_load_addr = .;
. = TEXT_START; . = TEXT_START;
_text = .; _text = .;
......
...@@ -56,7 +56,12 @@ static const unsigned long palette_4[16] = { ...@@ -56,7 +56,12 @@ static const unsigned long palette_4[16] = {
#define palette_setpixel(p) *(unsigned long *)(IO_START+0x00400000) = 0x10000000|((p) & 255) #define palette_setpixel(p) *(unsigned long *)(IO_START+0x00400000) = 0x10000000|((p) & 255)
#define palette_write(v) *(unsigned long *)(IO_START+0x00400000) = 0x00000000|((v) & 0x00ffffff) #define palette_write(v) *(unsigned long *)(IO_START+0x00400000) = 0x00000000|((v) & 0x00ffffff)
static struct param_struct *params = (struct param_struct *)PARAMS_PHYS; /*
* params_phys is a linker defined symbol - see
* arch/arm/boot/compressed/Makefile
*/
extern struct param_struct params_phys;
#define params (&params_phys)
#ifndef STANDALONE_DEBUG #ifndef STANDALONE_DEBUG
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment