Commit 47224407 authored by Russell King's avatar Russell King

[ARM] Fix params_phys with PIC decompressor builds.

parent d3f61e5a
...@@ -349,6 +349,12 @@ LC0: .word LC0 @ r1 ...@@ -349,6 +349,12 @@ LC0: .word LC0 @ r1
LC1: .word reloc_end - reloc_start LC1: .word reloc_end - reloc_start
.size LC0, . - LC0 .size LC0, . - LC0
.globl params
params: ldr r0, =params_phys
mov pc, lr
.ltorg
.align
/* /*
* Turn on the cache. We need to setup some page tables so that we * Turn on the cache. We need to setup some page tables so that we
* can have both the I and D caches on. * can have both the I and D caches on.
......
...@@ -60,8 +60,8 @@ static const unsigned long palette_4[16] = { ...@@ -60,8 +60,8 @@ static const unsigned long palette_4[16] = {
* params_phys is a linker defined symbol - see * params_phys is a linker defined symbol - see
* arch/arm/boot/compressed/Makefile * arch/arm/boot/compressed/Makefile
*/ */
extern struct param_struct params_phys; extern __attribute__((pure)) struct param_struct *params(void);
#define params (&params_phys) #define params (params())
#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