Lines Matching +full:boot +full:- +full:up
1 // SPDX-License-Identifier: GPL-2.0+
8 * This file implements U-Boot running as an EFI application.
27 return global_priv->sys_table; in efi_get_sys_table()
32 return global_priv->ram_base; in efi_get_ram_base()
37 struct efi_boot_services *boot = priv->boot; in setup_memory() local
44 * are very few assignments to global_data in U-Boot and this makes in setup_memory()
52 gd->malloc_base = (ulong)efi_malloc(priv, CONFIG_VAL(SYS_MALLOC_F_LEN), in setup_memory()
54 if (!gd->malloc_base) in setup_memory()
59 * Don't allocate any memory above 4GB. U-Boot is a 32-bit application in setup_memory()
63 ret = boot->allocate_pages(EFI_ALLOCATE_MAX_ADDRESS, in setup_memory()
64 priv->image_data_type, pages, &addr); in setup_memory()
67 priv->ram_base = (ulong)efi_malloc(priv, CONFIG_EFI_RAM_SIZE, in setup_memory()
69 if (!priv->ram_base) in setup_memory()
71 priv->use_pool_for_malloc = true; in setup_memory()
73 priv->ram_base = addr; in setup_memory()
75 gd->ram_size = pages << 12; in setup_memory()
82 struct efi_boot_services *boot = priv->boot; in free_memory() local
84 if (priv->use_pool_for_malloc) in free_memory()
85 efi_free(priv, (void *)priv->ram_base); in free_memory()
87 boot->free_pages(priv->ram_base, gd->ram_size >> 12); in free_memory()
89 efi_free(priv, (void *)gd->malloc_base); in free_memory()
95 * efi_main() - Start an EFI image
97 * This function is called by our EFI start-up code. It handles running
98 * U-Boot. If it returns, EFI will continue. Another way to get back to EFI
107 /* Set up access to EFI data structures */ in efi_main()
113 * Set up the EFI debug UART so that printf() works. This is in efi_main()
121 printf("Failed to set up memory: ret=%lx\n", ret); in efi_main()
139 printf("U-Boot EFI exiting\n"); in efi_exit()
140 priv->boot->exit(priv->parent_image, EFI_SUCCESS, 0, NULL); in efi_exit()
147 return -EINPROGRESS; in efi_sysreset_request()
160 .name = "efi-sysreset",