]>
git.ipfire.org Git - people/ms/u-boot.git/blob - arch/x86/lib/init_helpers.c
3 * Graeme Russ, <graeme.russ@gmail.com>
5 * SPDX-License-Identifier: GPL-2.0+
9 #include <linux/errno.h>
12 DECLARE_GLOBAL_DATA_PTR
;
14 /* Get the top of usable RAM */
15 __weak ulong
board_get_usable_ram_top(ulong total_size
)
20 int init_cache_f_r(void)
22 #if CONFIG_IS_ENABLED(X86_32BIT_INIT) && !defined(CONFIG_HAVE_FSP)
25 ret
= mtrr_commit(false);
26 /* If MTRR MSR is not implemented by the processor, just ignore it */
27 if (ret
&& ret
!= -ENOSYS
)
30 /* Initialise the CPU cache(s) */