nb/intel/i945/memmap.c: Fix TOLUD bit field mask
Register TOLUD is defined as bit field 7:3 (section 5.1.26, page 103, i945GM datasheet), fix the mask accordingly. Change-Id: Ia27661084e11ea93d5f0dc20bafb488ae2995b49 Signed-off-by: Petr Cvek <petrcvekcz@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/63752 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
b94d3681e1
commit
b30f8687b2
|
@ -40,7 +40,7 @@ static uintptr_t northbridge_get_tseg_base(void)
|
|||
/* IGD enabled, get top of Memory from BSM register */
|
||||
tom = pci_read_config32(IGD_DEV, BSM);
|
||||
else
|
||||
tom = (pci_read_config8(HOST_BRIDGE, TOLUD) & 0xf7) << 24;
|
||||
tom = (pci_read_config8(HOST_BRIDGE, TOLUD) & 0xf8) << 24;
|
||||
|
||||
/* subtract TSEG size */
|
||||
tom -= decode_tseg_size(pci_read_config8(HOST_BRIDGE, ESMRAMC));
|
||||
|
|
Loading…
Reference in New Issue