]> Git Repo - J-u-boot.git/blob - common/board_r.c
common: spl: spl: Init DRAM size in R5/A53 SPL
[J-u-boot.git] / common / board_r.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (c) 2011 The Chromium OS Authors.
4  * (C) Copyright 2002-2006
5  * Wolfgang Denk, DENX Software Engineering, [email protected].
6  *
7  * (C) Copyright 2002
8  * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
9  * Marius Groeger <[email protected]>
10  */
11
12 #include <config.h>
13 #include <api.h>
14 #include <bootstage.h>
15 #include <cpu_func.h>
16 #include <cyclic.h>
17 #include <display_options.h>
18 #include <exports.h>
19 #ifdef CONFIG_MTD_NOR_FLASH
20 #include <flash.h>
21 #endif
22 #include <hang.h>
23 #include <image.h>
24 #include <irq_func.h>
25 #include <log.h>
26 #include <net.h>
27 #include <asm/cache.h>
28 #include <asm/global_data.h>
29 #include <u-boot/crc.h>
30 #include <binman.h>
31 #include <command.h>
32 #include <console.h>
33 #include <dm.h>
34 #include <env.h>
35 #include <env_internal.h>
36 #include <fdtdec.h>
37 #include <ide.h>
38 #include <init.h>
39 #include <initcall.h>
40 #include <kgdb.h>
41 #include <irq_func.h>
42 #include <malloc.h>
43 #include <mapmem.h>
44 #include <miiphy.h>
45 #include <mmc.h>
46 #include <mux.h>
47 #include <nand.h>
48 #include <of_live.h>
49 #include <onenand_uboot.h>
50 #include <pvblock.h>
51 #include <scsi.h>
52 #include <serial.h>
53 #include <status_led.h>
54 #include <stdio_dev.h>
55 #include <timer.h>
56 #include <trace.h>
57 #include <watchdog.h>
58 #include <xen.h>
59 #include <asm/sections.h>
60 #include <dm/root.h>
61 #include <dm/ofnode.h>
62 #include <linux/compiler.h>
63 #include <linux/err.h>
64 #include <efi_loader.h>
65 #include <wdt.h>
66 #include <asm-generic/gpio.h>
67 #include <efi_loader.h>
68 #include <relocate.h>
69
70 DECLARE_GLOBAL_DATA_PTR;
71
72 ulong monitor_flash_len;
73
74 __weak int board_flash_wp_on(void)
75 {
76         /*
77          * Most flashes can't be detected when write protection is enabled,
78          * so provide a way to let U-Boot gracefully ignore write protected
79          * devices.
80          */
81         return 0;
82 }
83
84 __weak int cpu_secondary_init_r(void)
85 {
86         return 0;
87 }
88
89 static int initr_trace(void)
90 {
91 #ifdef CONFIG_TRACE
92         trace_init(gd->trace_buff, CONFIG_TRACE_BUFFER_SIZE);
93 #endif
94
95         return 0;
96 }
97
98 static int initr_reloc(void)
99 {
100         /* tell others: relocation done */
101         gd->flags |= GD_FLG_RELOC | GD_FLG_FULL_MALLOC_INIT;
102
103         return 0;
104 }
105
106 #if defined(CONFIG_ARM) || defined(CONFIG_RISCV)
107 /*
108  * Some of these functions are needed purely because the functions they
109  * call return void. If we change them to return 0, these stubs can go away.
110  */
111 static int initr_caches(void)
112 {
113         /* Enable caches */
114         enable_caches();
115         return 0;
116 }
117 #endif
118
119 __weak int fixup_cpu(void)
120 {
121         return 0;
122 }
123
124 static int initr_reloc_global_data(void)
125 {
126 #ifdef __ARM__
127         monitor_flash_len = _end - __image_copy_start;
128 #elif defined(CONFIG_RISCV)
129         monitor_flash_len = (ulong)_end - (ulong)_start;
130 #elif !defined(CONFIG_SANDBOX) && !defined(CONFIG_NIOS2)
131         monitor_flash_len = (ulong)__init_end - gd->relocaddr;
132 #endif
133 #if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
134         /*
135          * The gd->cpu pointer is set to an address in flash before relocation.
136          * We need to update it to point to the same CPU entry in RAM.
137          * TODO: why not just add gd->reloc_ofs?
138          */
139         gd->arch.cpu += gd->relocaddr - CONFIG_SYS_MONITOR_BASE;
140
141         /*
142          * If we didn't know the cpu mask & # cores, we can save them of
143          * now rather than 'computing' them constantly
144          */
145         fixup_cpu();
146 #endif
147 #ifdef CONFIG_SYS_RELOC_GD_ENV_ADDR
148         /*
149          * Relocate the early env_addr pointer unless we know it is not inside
150          * the binary. Some systems need this and for the rest, it doesn't hurt.
151          */
152         gd->env_addr += gd->reloc_off;
153 #endif
154 #ifdef CONFIG_EFI_LOADER
155         /*
156          * On the ARM architecture gd is mapped to a fixed register (r9 or x18).
157          * As this register may be overwritten by an EFI payload we save it here
158          * and restore it on every callback entered.
159          */
160         efi_save_gd();
161
162         efi_runtime_relocate(gd->relocaddr, NULL);
163 #endif
164
165         return 0;
166 }
167
168 __weak int arch_initr_trap(void)
169 {
170         return 0;
171 }
172
173 #if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500)
174 static int initr_unlock_ram_in_cache(void)
175 {
176         unlock_ram_in_cache();  /* it's time to unlock D-cache in e500 */
177         return 0;
178 }
179 #endif
180
181 static int initr_barrier(void)
182 {
183 #ifdef CONFIG_PPC
184         /* TODO: Can we not use dmb() macros for this? */
185         asm("sync ; isync");
186 #endif
187         return 0;
188 }
189
190 static int initr_malloc(void)
191 {
192         ulong start;
193
194 #if CONFIG_IS_ENABLED(SYS_MALLOC_F)
195         debug("Pre-reloc malloc() used %#lx bytes (%ld KB)\n", gd->malloc_ptr,
196               gd->malloc_ptr / 1024);
197 #endif
198         /* The malloc area is immediately below the monitor copy in DRAM */
199         /*
200          * This value MUST match the value of gd->start_addr_sp in board_f.c:
201          * reserve_noncached().
202          */
203         start = gd->relocaddr - TOTAL_MALLOC_LEN;
204         gd_set_malloc_start(start);
205         mem_malloc_init((ulong)map_sysmem(start, TOTAL_MALLOC_LEN),
206                         TOTAL_MALLOC_LEN);
207         return 0;
208 }
209
210 static int initr_of_live(void)
211 {
212         if (CONFIG_IS_ENABLED(OF_LIVE)) {
213                 int ret;
214
215                 bootstage_start(BOOTSTAGE_ID_ACCUM_OF_LIVE, "of_live");
216                 ret = of_live_build(gd->fdt_blob,
217                                     (struct device_node **)gd_of_root_ptr());
218                 bootstage_accum(BOOTSTAGE_ID_ACCUM_OF_LIVE);
219                 if (ret)
220                         return ret;
221         }
222
223         return 0;
224 }
225
226 #ifdef CONFIG_DM
227 static int initr_dm(void)
228 {
229         int ret;
230
231         oftree_reset();
232
233         /* Drop the pre-reloc driver model and start a new one */
234         gd->dm_root = NULL;
235 #ifdef CONFIG_TIMER
236         gd->timer = NULL;
237 #endif
238         bootstage_start(BOOTSTAGE_ID_ACCUM_DM_R, "dm_r");
239         ret = dm_init_and_scan(false);
240         bootstage_accum(BOOTSTAGE_ID_ACCUM_DM_R);
241         if (ret)
242                 return ret;
243
244         return 0;
245 }
246 #endif
247
248 static int initr_dm_devices(void)
249 {
250         int ret;
251
252         if (IS_ENABLED(CONFIG_TIMER_EARLY)) {
253                 ret = dm_timer_init();
254                 if (ret)
255                         return ret;
256         }
257
258         if (IS_ENABLED(CONFIG_MULTIPLEXER)) {
259                 /*
260                  * Initialize the multiplexer controls to their default state.
261                  * This must be done early as other drivers may unknowingly
262                  * rely on it.
263                  */
264                 ret = dm_mux_init();
265                 if (ret)
266                         return ret;
267         }
268
269         return 0;
270 }
271
272 static int initr_bootstage(void)
273 {
274         bootstage_mark_name(BOOTSTAGE_ID_START_UBOOT_R, "board_init_r");
275
276         return 0;
277 }
278
279 __weak int power_init_board(void)
280 {
281         return 0;
282 }
283
284 static int initr_announce(void)
285 {
286         debug("Now running in RAM - U-Boot at: %08lx\n", gd->relocaddr);
287         return 0;
288 }
289
290 static int initr_binman(void)
291 {
292         int ret;
293
294         if (!CONFIG_IS_ENABLED(BINMAN_FDT))
295                 return 0;
296
297         ret = binman_init();
298         if (ret)
299                 printf("binman_init failed:%d\n", ret);
300
301         return ret;
302 }
303
304 #if defined(CONFIG_MTD_NOR_FLASH)
305 __weak int is_flash_available(void)
306 {
307         return 1;
308 }
309
310 static int initr_flash(void)
311 {
312         ulong flash_size = 0;
313         struct bd_info *bd = gd->bd;
314
315         if (!is_flash_available())
316                 return 0;
317
318         puts("Flash: ");
319
320         if (board_flash_wp_on())
321                 printf("Uninitialized - Write Protect On\n");
322         else
323                 flash_size = flash_init();
324
325         print_size(flash_size, "");
326 #ifdef CONFIG_SYS_FLASH_CHECKSUM
327         /*
328          * Compute and print flash CRC if flashchecksum is set to 'y'
329          *
330          * NOTE: Maybe we should add some schedule()? XXX
331          */
332         if (env_get_yesno("flashchecksum") == 1) {
333                 const uchar *flash_base = (const uchar *)CFG_SYS_FLASH_BASE;
334
335                 printf("  CRC: %08X", crc32(0,
336                                             flash_base,
337                                             flash_size));
338         }
339 #endif /* CONFIG_SYS_FLASH_CHECKSUM */
340         putc('\n');
341
342         /* update start of FLASH memory    */
343 #ifdef CFG_SYS_FLASH_BASE
344         bd->bi_flashstart = CFG_SYS_FLASH_BASE;
345 #endif
346         /* size of FLASH memory (final value) */
347         bd->bi_flashsize = flash_size;
348
349 #if defined(CONFIG_SYS_UPDATE_FLASH_SIZE)
350         /* Make a update of the Memctrl. */
351         update_flash_size(flash_size);
352 #endif
353
354 #if defined(CONFIG_OXC) || defined(CONFIG_RMU)
355         /* flash mapped at end of memory map */
356         bd->bi_flashoffset = CONFIG_TEXT_BASE + flash_size;
357 #elif CONFIG_SYS_MONITOR_BASE == CFG_SYS_FLASH_BASE
358         bd->bi_flashoffset = monitor_flash_len; /* reserved area for monitor */
359 #endif
360         return 0;
361 }
362 #endif
363
364 #ifdef CONFIG_CMD_NAND
365 /* go init the NAND */
366 static int initr_nand(void)
367 {
368         puts("NAND:  ");
369         nand_init();
370         printf("%lu MiB\n", nand_size() / 1024);
371         return 0;
372 }
373 #endif
374
375 #if defined(CONFIG_CMD_ONENAND)
376 /* go init the NAND */
377 static int initr_onenand(void)
378 {
379         puts("NAND:  ");
380         onenand_init();
381         return 0;
382 }
383 #endif
384
385 #ifdef CONFIG_MMC
386 static int initr_mmc(void)
387 {
388         puts("MMC:   ");
389         mmc_initialize(gd->bd);
390         return 0;
391 }
392 #endif
393
394 #ifdef CONFIG_PVBLOCK
395 static int initr_pvblock(void)
396 {
397         puts("PVBLOCK: ");
398         pvblock_init();
399         return 0;
400 }
401 #endif
402
403 /*
404  * Tell if it's OK to load the environment early in boot.
405  *
406  * If CONFIG_OF_CONTROL is defined, we'll check with the FDT to see
407  * if this is OK (defaulting to saying it's OK).
408  *
409  * NOTE: Loading the environment early can be a bad idea if security is
410  *       important, since no verification is done on the environment.
411  *
412  * Return: 0 if environment should not be loaded, !=0 if it is ok to load
413  */
414 static int should_load_env(void)
415 {
416         if (IS_ENABLED(CONFIG_OF_CONTROL))
417                 return ofnode_conf_read_int("load-environment", 1);
418
419         if (IS_ENABLED(CONFIG_DELAY_ENVIRONMENT))
420                 return 0;
421
422         return 1;
423 }
424
425 static int initr_env(void)
426 {
427         /* initialize environment */
428         if (should_load_env())
429                 env_relocate();
430         else
431                 env_set_default(NULL, 0);
432
433         env_import_fdt();
434
435         if (IS_ENABLED(CONFIG_OF_CONTROL))
436                 env_set_hex("fdtcontroladdr",
437                             (unsigned long)map_to_sysmem(gd->fdt_blob));
438
439         #if (IS_ENABLED(CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR) || \
440                                                 IS_ENABLED(CONFIG_SAVE_PREV_BL_FDT_ADDR))
441                 save_prev_bl_data();
442         #endif
443
444         /* Initialize from environment */
445         image_load_addr = env_get_ulong("loadaddr", 16, image_load_addr);
446
447         return 0;
448 }
449
450 #ifdef CONFIG_SYS_MALLOC_BOOTPARAMS
451 static int initr_malloc_bootparams(void)
452 {
453         gd->bd->bi_boot_params = (ulong)malloc(CONFIG_SYS_BOOTPARAMS_LEN);
454         if (!gd->bd->bi_boot_params) {
455                 puts("WARNING: Cannot allocate space for boot parameters\n");
456                 return -ENOMEM;
457         }
458         return 0;
459 }
460 #endif
461
462 #if defined(CONFIG_LED_STATUS)
463 static int initr_status_led(void)
464 {
465 #if defined(CONFIG_LED_STATUS_BOOT)
466         status_led_set(CONFIG_LED_STATUS_BOOT, CONFIG_LED_STATUS_BLINKING);
467 #else
468         status_led_init();
469 #endif
470         return 0;
471 }
472 #endif
473
474 #ifdef CONFIG_CMD_NET
475 static int initr_net(void)
476 {
477         puts("Net:   ");
478         eth_initialize();
479 #if defined(CONFIG_RESET_PHY_R)
480         debug("Reset Ethernet PHY\n");
481         reset_phy();
482 #endif
483         return 0;
484 }
485 #endif
486
487 #ifdef CONFIG_POST
488 static int initr_post(void)
489 {
490         post_run(NULL, POST_RAM | post_bootmode_get(0));
491         return 0;
492 }
493 #endif
494
495 #if defined(CFG_PRAM)
496 /*
497  * Export available size of memory for Linux, taking into account the
498  * protected RAM at top of memory
499  */
500 int initr_mem(void)
501 {
502         ulong pram = 0;
503         char memsz[32];
504
505         pram = env_get_ulong("pram", 10, CFG_PRAM);
506         sprintf(memsz, "%ldk", (long int)((gd->ram_size / 1024) - pram));
507         env_set("mem", memsz);
508
509         return 0;
510 }
511 #endif
512
513 static int dm_announce(void)
514 {
515         int device_count;
516         int uclass_count;
517
518         if (IS_ENABLED(CONFIG_DM)) {
519                 dm_get_stats(&device_count, &uclass_count);
520                 printf("Core:  %d devices, %d uclasses", device_count,
521                        uclass_count);
522                 if (CONFIG_IS_ENABLED(OF_REAL))
523                         printf(", devicetree: %s", fdtdec_get_srcname());
524                 if (CONFIG_IS_ENABLED(UPL))
525                         printf(", universal payload active");
526                 printf("\n");
527                 if (IS_ENABLED(CONFIG_OF_HAS_PRIOR_STAGE) &&
528                     (gd->fdt_src == FDTSRC_SEPARATE ||
529                      gd->fdt_src == FDTSRC_EMBED)) {
530                         printf("Warning: Unexpected devicetree source (not from a prior stage)");
531                         printf("Warning: U-Boot may not function properly\n");
532                 }
533                 if (IS_ENABLED(CONFIG_OF_TAG_MIGRATE) &&
534                     (gd->flags & GD_FLG_OF_TAG_MIGRATE))
535                         /*
536                          * U-Boot will silently fail to work after 2023.07 if
537                          * there are old tags present
538                          */
539                         printf("Warning: Device tree includes old 'u-boot,dm-' tags: please fix by 2023.07!\n");
540         }
541
542         return 0;
543 }
544
545 static int run_main_loop(void)
546 {
547 #ifdef CONFIG_SANDBOX
548         sandbox_main_loop_init();
549 #endif
550
551         event_notify_null(EVT_MAIN_LOOP);
552
553         /* main_loop() can return to retry autoboot, if so just run it again */
554         for (;;)
555                 main_loop();
556         return 0;
557 }
558
559 /*
560  * Over time we hope to remove these functions with code fragments and
561  * stub functions, and instead call the relevant function directly.
562  *
563  * We also hope to remove most of the driver-related init and do it if/when
564  * the driver is later used.
565  *
566  * TODO: perhaps reset the watchdog in the initcall function after each call?
567  */
568 static init_fnc_t init_sequence_r[] = {
569         initr_trace,
570         initr_reloc,
571         event_init,
572         /* TODO: could x86/PPC have this also perhaps? */
573 #if defined(CONFIG_ARM) || defined(CONFIG_RISCV)
574         initr_caches,
575         /* Note: For Freescale LS2 SoCs, new MMU table is created in DDR.
576          *       A temporary mapping of IFC high region is since removed,
577          *       so environmental variables in NOR flash is not available
578          *       until board_init() is called below to remap IFC to high
579          *       region.
580          */
581 #endif
582         initr_reloc_global_data,
583 #if defined(CONFIG_SYS_INIT_RAM_LOCK) && defined(CONFIG_E500)
584         initr_unlock_ram_in_cache,
585 #endif
586         initr_barrier,
587         initr_malloc,
588         log_init,
589         initr_bootstage,        /* Needs malloc() but has its own timer */
590 #if defined(CONFIG_CONSOLE_RECORD)
591         console_record_init,
592 #endif
593 #ifdef CONFIG_SYS_NONCACHED_MEMORY
594         noncached_init,
595 #endif
596         initr_of_live,
597 #ifdef CONFIG_DM
598         initr_dm,
599 #endif
600 #ifdef CONFIG_ADDR_MAP
601         init_addr_map,
602 #endif
603 #if defined(CONFIG_ARM) || defined(CONFIG_RISCV) || defined(CONFIG_SANDBOX)
604         board_init,     /* Setup chipselects */
605 #endif
606         /*
607          * TODO: printing of the clock inforamtion of the board is now
608          * implemented as part of bdinfo command. Currently only support for
609          * davinci SOC's is added. Remove this check once all the board
610          * implement this.
611          */
612 #ifdef CONFIG_CLOCKS
613         set_cpu_clk_info, /* Setup clock information */
614 #endif
615 #ifdef CONFIG_EFI_LOADER
616         efi_memory_init,
617 #endif
618         initr_binman,
619 #ifdef CONFIG_FSP_VERSION2
620         arch_fsp_init_r,
621 #endif
622         initr_dm_devices,
623         stdio_init_tables,
624         serial_initialize,
625         initr_announce,
626         dm_announce,
627 #if CONFIG_IS_ENABLED(WDT)
628         initr_watchdog,
629 #endif
630         INIT_FUNC_WATCHDOG_RESET
631         arch_initr_trap,
632 #if defined(CONFIG_BOARD_EARLY_INIT_R)
633         board_early_init_r,
634 #endif
635         INIT_FUNC_WATCHDOG_RESET
636 #ifdef CONFIG_POST
637         post_output_backlog,
638 #endif
639         INIT_FUNC_WATCHDOG_RESET
640 #if defined(CONFIG_PCI_INIT_R) && defined(CONFIG_SYS_EARLY_PCI_INIT)
641         /*
642          * Do early PCI configuration _before_ the flash gets initialised,
643          * because PCU resources are crucial for flash access on some boards.
644          */
645         pci_init,
646 #endif
647 #ifdef CONFIG_ARCH_EARLY_INIT_R
648         arch_early_init_r,
649 #endif
650         power_init_board,
651 #ifdef CONFIG_MTD_NOR_FLASH
652         initr_flash,
653 #endif
654         INIT_FUNC_WATCHDOG_RESET
655 #if defined(CONFIG_PPC) || defined(CONFIG_M68K) || defined(CONFIG_X86)
656         /* initialize higher level parts of CPU like time base and timers */
657         cpu_init_r,
658 #endif
659 #ifdef CONFIG_EFI_LOADER
660         efi_init_early,
661 #endif
662 #ifdef CONFIG_CMD_NAND
663         initr_nand,
664 #endif
665 #ifdef CONFIG_CMD_ONENAND
666         initr_onenand,
667 #endif
668 #ifdef CONFIG_MMC
669         initr_mmc,
670 #endif
671 #ifdef CONFIG_XEN
672         xen_init,
673 #endif
674 #ifdef CONFIG_PVBLOCK
675         initr_pvblock,
676 #endif
677         initr_env,
678 #ifdef CONFIG_SYS_MALLOC_BOOTPARAMS
679         initr_malloc_bootparams,
680 #endif
681         INIT_FUNC_WATCHDOG_RESET
682         cpu_secondary_init_r,
683 #if defined(CONFIG_ID_EEPROM)
684         mac_read_from_eeprom,
685 #endif
686         INITCALL_EVENT(EVT_SETTINGS_R),
687         INIT_FUNC_WATCHDOG_RESET
688 #if defined(CONFIG_PCI_INIT_R) && !defined(CONFIG_SYS_EARLY_PCI_INIT)
689         /*
690          * Do pci configuration
691          */
692         pci_init,
693 #endif
694         stdio_add_devices,
695         jumptable_init,
696 #ifdef CONFIG_API
697         api_init,
698 #endif
699         console_init_r,         /* fully init console as a device */
700 #ifdef CONFIG_DISPLAY_BOARDINFO_LATE
701         console_announce_r,
702         show_board_info,
703 #endif
704 #ifdef CONFIG_ARCH_MISC_INIT
705         arch_misc_init,         /* miscellaneous arch-dependent init */
706 #endif
707 #ifdef CONFIG_MISC_INIT_R
708         misc_init_r,            /* miscellaneous platform-dependent init */
709 #endif
710         INIT_FUNC_WATCHDOG_RESET
711 #ifdef CONFIG_CMD_KGDB
712         kgdb_init,
713 #endif
714         interrupt_init,
715 #if defined(CONFIG_MICROBLAZE) || defined(CONFIG_M68K)
716         timer_init,             /* initialize timer */
717 #endif
718 #if defined(CONFIG_LED_STATUS)
719         initr_status_led,
720 #endif
721         /* PPC has a udelay(20) here dating from 2002. Why? */
722 #ifdef CONFIG_BOARD_LATE_INIT
723         board_late_init,
724 #endif
725 #ifdef CONFIG_BITBANGMII
726         bb_miiphy_init,
727 #endif
728 #ifdef CONFIG_PCI_ENDPOINT
729         pci_ep_init,
730 #endif
731 #ifdef CONFIG_CMD_NET
732         INIT_FUNC_WATCHDOG_RESET
733         initr_net,
734 #endif
735 #ifdef CONFIG_POST
736         initr_post,
737 #endif
738         INIT_FUNC_WATCHDOG_RESET
739         INITCALL_EVENT(EVT_LAST_STAGE_INIT),
740 #if defined(CFG_PRAM)
741         initr_mem,
742 #endif
743         run_main_loop,
744 };
745
746 void board_init_r(gd_t *new_gd, ulong dest_addr)
747 {
748         /*
749          * The pre-relocation drivers may be using memory that has now gone
750          * away. Mark serial as unavailable - this will fall back to the debug
751          * UART if available.
752          *
753          * Do the same with log drivers since the memory may not be available.
754          */
755         gd->flags &= ~(GD_FLG_SERIAL_READY | GD_FLG_LOG_READY);
756
757         /*
758          * Set up the new global data pointer. So far only x86 does this
759          * here.
760          * TODO([email protected]): Consider doing this for all archs, or
761          * dropping the new_gd parameter.
762          */
763         if (CONFIG_IS_ENABLED(X86_64) && !IS_ENABLED(CONFIG_EFI_APP))
764                 arch_setup_gd(new_gd);
765
766 #if !defined(CONFIG_X86) && !defined(CONFIG_ARM) && !defined(CONFIG_ARM64)
767         gd = new_gd;
768 #endif
769         gd->flags &= ~GD_FLG_LOG_READY;
770
771         if (initcall_run_list(init_sequence_r))
772                 hang();
773
774         /* NOTREACHED - run_main_loop() does not return */
775         hang();
776 }
This page took 0.070596 seconds and 4 git commands to generate.