coreboot-kgpe-d16/src/northbridge/amd/lx
Patrick Georgi 59493717ad northbridge/amd/{lx,gx2}: remove immediate accesses of 0
gcc doesn't like these because they're undefined behavior, so use
zeroptr instead. For the loop that just does a number of writes (0..4),
use zeroptr + i.

Checked the disassembly (AMD_RUMBA and PCENGINES_ALIX2D) to not contain
ud2 anymore and to look reasonable where zeroptr was used.

Change-Id: I4a58220ec9a10c465909ca4ecbe5366d0a8cc0df
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/14345
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Tested-by: build bot (Jenkins)
2016-04-16 01:50:55 +02:00
..
grphinit.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
Kconfig CBMEM: Tag chipsets with LATE_CBMEM_INIT 2015-01-27 22:47:00 +01:00
Makefile.inc kbuild: automatically include northbridges 2015-04-29 18:12:14 +02:00
northbridge.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
northbridge.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
northbridgeinit.c northbridge/amd/{lx,gx2}: remove immediate accesses of 0 2016-04-16 01:50:55 +02:00
pll_reset.c tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
raminit.c northbridge/amd/{lx,gx2}: remove immediate accesses of 0 2016-04-16 01:50:55 +02:00
raminit.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00