i945: improve get_top_of_ram()
authorSven Schnelle <svens@stackframe.org>
Sun, 10 Apr 2011 07:41:56 +0000 (07:41 +0000)
committerSven Schnelle <svens@stackframe.org>
Sun, 10 Apr 2011 07:41:56 +0000 (07:41 +0000)
commit148a4f5681263a24408d5988261bb3fd6b3c647e
treeead2ec62e5fd71901ec77e5dbff24076b727f081
parent61aee5f4b1d596a0cb007e666df13094abed6d10
i945: improve get_top_of_ram()

The current version doesn't honor TSEG, and fails to
report the correct top of RAM if IGD is disabled. This
is because it uses the BSM (base of stolen RAM) register.
In that case, we should use the TOLUD register.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Acked-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6483 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
src/northbridge/intel/i945/raminit.c