Lines Matching +full:x86_64 +full:- +full:linux

3  * (C) Copyright 2002-2006
7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
10 * SPDX-License-Identifier: GPL-2.0+
56 #include <linux/compiler.h>
57 #include <linux/err.h>
75 * so provide a way to let U-Boot gracefully ignore write protected in board_flash_wp_on()
88 * after non-volatile devices & environment is setup and cpu code have in initr_secondary_cpu()
91 * from a non-volatile device in initr_secondary_cpu()
102 trace_init(gd->trace_buff, CONFIG_TRACE_BUFFER_SIZE); in initr_trace()
111 gd->flags |= GD_FLG_RELOC | GD_FLG_FULL_MALLOC_INIT; in initr_reloc()
159 monitor_flash_len = _end - __image_copy_start; in initr_reloc_global_data()
161 monitor_flash_len = (ulong)&_end - (ulong)&_start; in initr_reloc_global_data()
163 monitor_flash_len = (ulong)&__init_end - gd->relocaddr; in initr_reloc_global_data()
167 * The gd->cpu pointer is set to an address in flash before relocation. in initr_reloc_global_data()
169 * TODO: why not just add gd->reloc_ofs? in initr_reloc_global_data()
171 gd->arch.cpu += gd->relocaddr - CONFIG_SYS_MONITOR_BASE; in initr_reloc_global_data()
187 gd->env_addr += gd->relocaddr - CONFIG_SYS_MONITOR_BASE; in initr_reloc_global_data()
194 gd->fdt_blob += gd->reloc_off; in initr_reloc_global_data()
197 efi_runtime_relocate(gd->relocaddr, NULL); in initr_reloc_global_data()
216 trap_init(gd->relocaddr); in initr_trap()
244 unlock_ram_in_cache(); /* it's time to unlock D-cache in e500 */ in initr_unlock_ram_in_cache()
274 debug("Pre-reloc malloc() used %#lx bytes (%ld KB)\n", gd->malloc_ptr, in initr_malloc()
275 gd->malloc_ptr / 1024); in initr_malloc()
278 malloc_start = gd->relocaddr - TOTAL_MALLOC_LEN; in initr_malloc()
312 ret = of_live_build(gd->fdt_blob, (struct device_node **)&gd->of_root); in initr_of_live()
326 /* Save the pre-reloc driver model and start a new one */ in initr_dm()
327 gd->dm_root_f = gd->dm_root; in initr_dm()
328 gd->dm_root = NULL; in initr_dm()
330 gd->timer = NULL; in initr_dm()
364 addr = gd->relocaddr; in initr_announce()
368 debug("Now running in RAM - U-Boot at: %08lx\n", addr); in initr_announce()
386 bd_t *bd = gd->bd; in initr_flash()
391 printf("Uninitialized - Write Protect On\n"); in initr_flash()
412 bd->bi_flashstart = CONFIG_SYS_FLASH_BASE; in initr_flash()
415 bd->bi_flashsize = flash_size; in initr_flash()
425 bd->bi_flashoffset = CONFIG_SYS_TEXT_BASE + flash_size; in initr_flash()
427 bd->bi_flashoffset = monitor_flash_len; /* reserved area for monitor */ in initr_flash()
478 mmc_initialize(gd->bd); in initr_mmc()
499 return fdtdec_get_config_int(gd->fdt_blob, "load-environment", 1); in should_load_env()
515 env_set_addr("fdtcontroladdr", gd->fdt_blob); in initr_env()
582 return -EINVAL; in initr_env_switch()
589 set_board_env((char *)env_nowhere->data, ENV_SIZE, H_NOCLEAR, false); in initr_env_switch()
595 * the one in env_nowhere->data. in initr_env_switch()
611 gd->bd->bi_boot_params = (ulong)malloc(CONFIG_SYS_BOOTPARAMS_LEN); in initr_malloc_bootparams()
612 if (!gd->bd->bi_boot_params) { in initr_malloc_bootparams()
614 return -ENOMEM; in initr_malloc_bootparams()
647 bd_t *bd = gd->bd; in initr_ethaddr()
650 eth_env_get_enetaddr("ethaddr", bd->bi_enetaddr); in initr_ethaddr()
652 eth_env_get_enetaddr("eth1addr", bd->bi_enet1addr); in initr_ethaddr()
655 eth_env_get_enetaddr("eth2addr", bd->bi_enet2addr); in initr_ethaddr()
658 eth_env_get_enetaddr("eth3addr", bd->bi_enet3addr); in initr_ethaddr()
661 eth_env_get_enetaddr("eth4addr", bd->bi_enet4addr); in initr_ethaddr()
664 eth_env_get_enetaddr("eth5addr", bd->bi_enet5addr); in initr_ethaddr()
755 * Export available size of memory for Linux, taking into account the
766 sprintf(memsz, "%ldk", (long int) ((gd->ram_size / 1024) - pram)); in initr_mem()
824 * We also hope to remove most of the driver-related init and do it if/when
846 * to avoid kernel touches it, but U-Boot may have communication with
851 * between firmware and U-Boot.
994 arch_misc_init, /* miscellaneous arch-dependent init */
997 misc_init_r, /* miscellaneous platform-dependent init */
1044 * Interrupts) are up and running (i.e. the PC-style ISA
1070 #if CONFIG_IS_ENABLED(X86_64) in board_init_r()
1081 gd->flags &= ~GD_FLG_LOG_READY; in board_init_r()
1085 init_sequence_r[i] += gd->reloc_off; in board_init_r()
1091 /* NOTREACHED - run_main_loop() does not return */ in board_init_r()