1 // SPDX-License-Identifier: GPL-2.0+
4 * Graeme Russ, <graeme.russ@gmail.com>
8 #include <linux/errno.h>
11 DECLARE_GLOBAL_DATA_PTR;
13 /* Get the top of usable RAM */
14 __weak ulong board_get_usable_ram_top(ulong total_size)
19 int init_cache_f_r(void)
21 #if (CONFIG_IS_ENABLED(X86_32BIT_INIT) || \
22 (!defined(CONFIG_SPL_BUILD) && \
23 !CONFIG_IS_ENABLED(CONFIG_X86_RUN_64BIT))) && \
24 !defined(CONFIG_HAVE_FSP)
27 ret = mtrr_commit(false);
28 /* If MTRR MSR is not implemented by the processor, just ignore it */
29 if (ret && ret != -ENOSYS)
32 /* Initialise the CPU cache(s) */