From 0750da1abccc9fdc1329cf5f7db99a4000bfd5bf Mon Sep 17 00:00:00 2001 From: raj Date: Wed, 3 Sep 2008 16:38:27 +0000 Subject: Use current SP instead of global data ptr for the U-Boot API signature search hint. Global data (pointed by R2 on PowerPC) in principle is not guaranteed to be in proximity of U-Boot heap (where the API signature is placed) accross different architectures and platforms. Instead, use U-Boot stack pointer as a hint for the search instead of the global data; this method tends to be more uniform accross different platforms. Obtained from: Semihalf --- sys/boot/powerpc/uboot/start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/boot/powerpc') diff --git a/sys/boot/powerpc/uboot/start.S b/sys/boot/powerpc/uboot/start.S index cee6db7..3e80576 100644 --- a/sys/boot/powerpc/uboot/start.S +++ b/sys/boot/powerpc/uboot/start.S @@ -37,7 +37,7 @@ _start: /* Hint where to look for the API signature */ lis %r11, uboot_address@ha addi %r11, %r11, uboot_address@l - stw %r2, 0(%r11) + stw %r1, 0(%r11) /* Save U-Boot's r14 */ lis %r11, saved_regs@ha addi %r11, %r11, saved_regs@l -- cgit v1.1