u-boot-brain/cpu
Shinya Kuribayashi 22069215eb [MIPS] Fix $gp usage
Now we load $gp with _GLOBAL_OFFSET_TABLE_, but this is incorrect use.
As a general principle, we should use _gp for $gp.

Thanks to linker script's help we fortunately have _gp which equals to
_GLOBAL_OFFSET_TABLE_. But once _gp gets out of alignment, we will not
be able to access to GOT entires, global variables and procedure entry
points. The right thing to do is to use _gp.

This patch also introduce a new symbol `.gpword _GLOBAL_OFFSET_TABLE_'
which holds the offset from _gp. When updating GOT entries, we use this
offset and _gp to calculate the final _GLOBAL_OFFSET_TABLE_.

This patch is originally submitted by Vlad Lungu <vlad@comsys.ro>, then
I made some change to leave over num_got_entries.

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@necel.com>
Cc: Vlad Lungu <vlad@comsys.ro>
2007-10-21 10:55:36 +09:00
..
74xx_7xx cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
arm720t Fix missing DECLARE_GLOBAL_DATA_PTR on CONFIG_LPC2292 in serial 2007-09-28 01:08:38 +02:00
arm920t Move coloured led API to status_led.h 2007-09-18 13:07:54 +01:00
arm925t [PATCH] omap925.c: Remove unused functions 2006-10-28 17:13:12 +02:00
arm926ejs Clean up some remaining CFG_CMD_ -> CONFIG_CMD_ issues. 2007-08-12 14:27:39 +02:00
arm946es Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
arm1136 Remove compiler warning: target CPU does not support interworking 2007-09-10 09:26:35 +02:00
arm_intcm Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
at32ap atmel_mci: Fix data timeout value 2007-08-13 17:35:16 +02:00
bf533 Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
bf537 Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
bf561 Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
i386 cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
ixp cpu/[7a-ln-z]*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 18:57:22 -05:00
lh7a40x Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
mcf52x2 Coding style cleanup 2007-08-18 14:33:02 +02:00
mcf523x Coding style cleanup 2007-08-18 14:33:02 +02:00
mcf532x Fix cases where DECLARE_GLOBAL_DATA_PTR was not declared as global 2007-09-15 20:48:41 +02:00
mcf5445x ColdFire: Add M54455EVB for MCF5445x 2007-08-16 17:43:23 -06:00
microblaze [PATCH] Add support for design without interrupt controller 2007-09-24 00:21:19 +02:00
mips [MIPS] Fix $gp usage 2007-10-21 10:55:36 +09:00
mpc5xx cpu/m*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 19:06:00 -05:00
mpc5xxx Migrate 5xxx boards from CONFIG_OF_FLAT_TREE to CONFIG_OF_LIBFDT 2007-09-06 09:46:23 -06:00
mpc8xx cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
mpc83xx mpc83xx: fix typo in DDR2 programming 2007-08-17 09:30:00 -05:00
mpc85xx Enable L2 cache for MPC8568MDS board 2007-08-29 00:11:44 -05:00
mpc86xx 86xx: Allow for fewer DDR slots per memory controller. 2007-10-16 16:36:36 +02:00
mpc512x [MPC512x] Streamline frame handling in the FEC driver 2007-09-10 17:39:08 +02:00
mpc824x cpu/m*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 19:06:00 -05:00
mpc8220 cpu/m*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 19:06:00 -05:00
mpc8260 cpu/ rtc/ include/: Remove lingering references to CFG_CMD_* symbols. 2007-07-10 10:27:39 -05:00
nios Minor alignment of output, 2nd try. 2007-08-12 21:34:34 +02:00
nios2 cpu/[7a-ln-z]*: Remove obsolete references to CONFIG_COMMANDS 2007-07-09 18:57:22 -05:00
ppc4xx ppc4xx: Coding style cleanup 2007-10-02 11:44:46 +02:00
pxa PXA USB OHCI: "usb stop" implementation. 2007-10-15 12:57:41 +02:00
s3c44b0 Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00
sa1100 Move "ar" flags to config.mk to allow for silent "make -s" 2006-10-09 01:02:05 +02:00