]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
serial/serial_arc: set registers address during compilation
authorAlexey Brodkin <abrodkin@synopsys.com>
Tue, 24 Feb 2015 16:31:51 +0000 (19:31 +0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:38:13 +0000 (14:38 +0200)
commit819151b14739dbb09e718961e41abdfdf67d60a0
treef5f84fa5f80f1c896ecc86f6b77c9049062744de
parentd61da1a7800f3581c08512460d145cdc77acd3a6
serial/serial_arc: set registers address during compilation

Being global variable with 0 value it falls into .bss area which we may
only use after relocation to RAM. And right afetr relocation we zero
.bss - effectively cleaing register address set for early console.

Now with pre-set value "regs" variable is no longer in .bss and this way
safely survives relocation.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
drivers/serial/serial_arc.c