From: Simon Glass Date: Wed, 14 Dec 2016 20:27:41 -0700 Subject: [U-Boot] [PATCH 10/29] blackfin: Avoiding using P3 in early init In-Reply-To: <1481772480-29544-1-git-send-email-sjg@chromium.org> References: <1481772480-29544-1-git-send-email-sjg@chromium.org> Message-ID: <1481772480-29544-11-git-send-email-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The P3 register is used to hold the global_data pointer. At present this is not set up until cpu_init_f() is called, but we want to instead set it up using the standard board_init_f_init_reserve() function. To avoid it being overwritten use P2 instead of P3 in early init. Signed-off-by: Simon Glass --- arch/blackfin/cpu/start.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/blackfin/cpu/start.S b/arch/blackfin/cpu/start.S index 5e19ad2..0bba86b 100644 --- a/arch/blackfin/cpu/start.S +++ b/arch/blackfin/cpu/start.S @@ -219,9 +219,9 @@ ENTRY(_start) r7 = EVT_IVG15 (z); sti r7; raise 15; - p3.l = .LWAIT_HERE; - p3.h = .LWAIT_HERE; - reti = p3; + p2.l = .LWAIT_HERE; + p2.h = .LWAIT_HERE; + reti = p2; rti; /* Enable nested interrupts before continuing with cpu init */ -- 2.8.0.rc3.226.g39d4020