aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/via/vx900/early_vx900.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/via/vx900/early_vx900.c')
-rw-r--r--src/northbridge/via/vx900/early_vx900.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/northbridge/via/vx900/early_vx900.c b/src/northbridge/via/vx900/early_vx900.c
index 6e1bc23cae..b350ffde28 100644
--- a/src/northbridge/via/vx900/early_vx900.c
+++ b/src/northbridge/via/vx900/early_vx900.c
@@ -18,10 +18,10 @@
#include <arch/io.h>
#include <console/console.h>
-unsigned long get_top_of_ram(void)
+uintptr_t restore_top_of_low_cacheable(void)
{
- u16 reg_tom = pci_read_config8(MCU, 0x88);
- return (((unsigned long)reg_tom) << 24) - (256 << 20);
+ u8 reg_tom = pci_read_config8(MCU, 0x88);
+ return (reg_tom << 24) - 256 * MiB;
}
/**