Lines Matching +full:console +full:- +full:size

1 /*-
76 char *console;
82 console = getenv("console");
83 if (console != NULL) {
84 if (strcmp(console, "comconsole") == 0)
86 if (strcmp(console, "nullconsole") == 0)
90 if (strcmp(console, "efi") == 0 &&
92 getenv("hw.uart.console") == NULL) {
107 * But if someone specifically setup hw.uart.console,
110 speed = -1;
111 port = -1;
127 if (speed != -1 && port != -1) {
130 env_setenv("hw.uart.console", EV_VOLATILE, buf,
159 if ((desc->Attribute & EFI_MEMORY_RUNTIME) != 0) {
161 desc->VirtualStart = desc->PhysicalStart;
166 ret = RS->SetVirtualAddressMap(nset * mmsz, mmsz, mmver, vmap);
200 printf("addr, size 0x%jx, 0x%jx\n",
221 * Assign size of EFI_MEMORY_DESCRIPTOR to keep compatible with
222 * u-boot which doesn't fill this value when buffer for memory
223 * descriptors is too small (eg. 0 to obtain memory map size)
230 * unknown size, so we have to determine that first. Note that
247 for (retry = 2; retry > 0; retry--) {
249 status = BS->GetMemoryMap(&sz, mm, &efi_mapkey, &dsz, &mmver);
260 BS->FreePages(addr, pages);
262 /* Add 10 descriptors to the size to allow for
266 status = BS->AllocatePages(AllocateAnyPages, EfiLoaderData,
276 * memory map on a 16-byte boundary (the bootinfo block is page
281 sz = (EFI_PAGE_SIZE * pages) - efisz;
292 BS->FreePages(addr, pages);
305 efihdr->memory_size = sz;
306 efihdr->descriptor_size = dsz;
307 efihdr->descriptor_version = mmver;
318 * - The 'boothowto' argument is constructed.
319 * - The 'bootdev' argument is constructed.
320 * - The 'bootinfo' struct is constructed, and copied into the kernel space.
321 * - The kernel environment is copied into kernel space.
322 * - Module metadata are formatted and placed in kernel space.
336 vm_offset_t size;
341 * The 32-bit UEFI loader is used to
342 * boot the 64-bit kernel on machines
386 for (xp = file_findfile(NULL, NULL); xp != NULL; xp = xp->f_next) {
387 if (addr < xp->f_addr + xp->f_size)
388 addr = xp->f_addr + xp->f_size;
428 /* Figure out the size and location of the metadata. */
463 size = md_copymodules(0, is64); /* Find the size of the modules */
464 kernend = roundup(addr + size, PAGE_SIZE);
469 bcopy(&kernend, md->md_data, sizeof kernend);
472 *modulep -= __elfN(relocation_offset);
475 for (xp = file_findfile(NULL, NULL); xp != NULL; xp = xp->f_next) {
479 bcopy(md->md_data, &vaddr, sizeof vaddr);
480 vaddr -= __elfN(relocation_offset);
481 bcopy(&vaddr, md->md_data, sizeof vaddr);