return 0;
}
+__weak unsigned long get_timer_masked(void)
+{
+ return get_timer(0);
+}
+
#ifdef CONFIG_OF_HOSTFILE
static int read_fdt_from_file(void)
static int setup_reloc(void)
{
#ifdef CONFIG_SYS_TEXT_BASE
+#ifndef CONFIG_SECURE_BOOT
gd->reloc_off = gd->relocaddr - CONFIG_SYS_TEXT_BASE;
+#else
+ gd->reloc_off = gd->relocaddr - (unsigned long)__image_copy_start;
+#endif
#endif
memcpy(gd->new_gd, (char *)gd, sizeof(gd_t));
return 0;
}
+/* Architecture-specific memory reservation */
+__weak int reserve_arch(void)
+{
+ return 0;
+}
+
static init_fnc_t init_sequence_f[] = {
#ifdef CONFIG_SANDBOX
setup_ram_buf,
prt_mpc5xxx_clks,
#endif /* CONFIG_MPC5xxx */
#if defined(CONFIG_DISPLAY_BOARDINFO)
- checkboard, /* display board info */
+ show_board_info,
#endif
INIT_FUNC_WATCHDOG_INIT
#if defined(CONFIG_MISC_INIT_F)
setup_machine,
reserve_global_data,
reserve_fdt,
+ reserve_arch,
reserve_stacks,
setup_dram_config,
show_dram_config,
INIT_FUNC_WATCHDOG_RESET
reloc_fdt,
setup_reloc,
+#ifdef CONFIG_X86
+ copy_uboot_to_ram,
+ clear_bss,
+ do_elf_reloc_fixups,
+#endif
#if !defined(CONFIG_ARM) && !defined(CONFIG_SANDBOX)
jump_to_copy,
#endif
*/
static init_fnc_t init_sequence_f_r[] = {
init_cache_f_r,
- copy_uboot_to_ram,
- clear_bss,
- do_elf_reloc_fixups,
NULL,
};