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) && !defined(CONFIG_HAVE_FSP)
24 ret = mtrr_commit(false);
25 /* If MTRR MSR is not implemented by the processor, just ignore it */
26 if (ret && ret != -ENOSYS)
29 /* Initialise the CPU cache(s) */