summaryrefslogtreecommitdiff
path: root/src/northbridge/intel/haswell
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/intel/haswell')
-rw-r--r--src/northbridge/intel/haswell/memmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/northbridge/intel/haswell/memmap.c b/src/northbridge/intel/haswell/memmap.c
index a86efeb788..807ee2a358 100644
--- a/src/northbridge/intel/haswell/memmap.c
+++ b/src/northbridge/intel/haswell/memmap.c
@@ -18,7 +18,7 @@ static uintptr_t smm_region_start(void)
* 1 MiB alignment.
*/
uintptr_t tom = pci_read_config32(HOST_BRIDGE, TSEG);
- return tom & ~((1 << 20) - 1);
+ return ALIGN_DOWN(tom, 1 * MiB);
}
void *cbmem_top_chipset(void)