/illumos-gate/usr/src/boot/i386/loader/ |
H A D | main.c | 65 struct arch_switch archsw; /* MI/MD interface boundary */ variable 163 archsw.arch_autoload = i386_autoload; in main() 164 archsw.arch_getdev = i386_getdev; in main() 165 archsw.arch_copyin = i386_copyin; in main() 166 archsw.arch_copyout = i386_copyout; in main() 167 archsw.arch_readin = i386_readin; in main() 168 archsw.arch_isainb = isa_inb; in main() 169 archsw.arch_isaoutb = isa_outb; in main() 170 archsw.arch_loadaddr = i386_loadaddr; in main() 171 archsw.arch_hypervisor = x86_hypervisor; in main() [all …]
|
H A D | chain.c | 90 if (archsw.arch_readin(fd, mem, size) != size) { in command_chain()
|
/illumos-gate/usr/src/boot/efi/loader/ |
H A D | bootinfo.c | 126 if ((size_t)archsw.arch_copyin(ep->ev_name, addr, len) != len) in bi_copyenv() 129 if (archsw.arch_copyin("=", addr, 1) != 1) in bi_copyenv() 134 if ((size_t)archsw.arch_copyin(ep->ev_value, in bi_copyenv() 139 if (archsw.arch_copyin("", addr, 1) != 1) in bi_copyenv() 144 if (archsw.arch_copyin("", last++, 1) != 1) in bi_copyenv() 168 archsw.arch_copyin(&x, a, sizeof (x)); \ 176 archsw.arch_copyin(s, a, strlen(s) + 1); \ 188 archsw.arch_copyin(&s, a, sizeof (s)); \ 199 archsw.arch_copyin(mm->md_data, a, mm->md_size); \ 378 archsw.arch_getdev((void**)(&rootdev), rootdevname, NULL); in bi_load()
|
H A D | main.c | 65 struct arch_switch archsw; /* MI/MD interface boundary */ variable 695 archsw.arch_autoload = efi_autoload; in main() 696 archsw.arch_getdev = efi_getdev; in main() 697 archsw.arch_copyin = efi_copyin; in main() 698 archsw.arch_copyout = efi_copyout; in main() 699 archsw.arch_readin = efi_readin; in main() 700 archsw.arch_loadaddr = efi_loadaddr; in main() 701 archsw.arch_free_loadaddr = efi_free_loadaddr; in main() 703 archsw.arch_hypervisor = x86_hypervisor; in main() 706 archsw.arch_zfs_probe = efi_zfs_probe; in main()
|
/illumos-gate/usr/src/boot/common/ |
H A D | module.c | 336 if (archsw.arch_loadaddr != NULL) in file_load() 337 dest = archsw.arch_loadaddr(LOAD_RAW, filename, dest); in file_load() 497 if (archsw.arch_loadaddr != NULL) in build_environment_module() 498 loadaddr = archsw.arch_loadaddr(LOAD_MEM, &size, loadaddr); in build_environment_module() 599 if (archsw.arch_loadaddr != NULL) in build_font_module() 600 loadaddr = archsw.arch_loadaddr(LOAD_MEM, &size, loadaddr); in build_font_module() 610 laddr += archsw.arch_copyin(&fi, laddr, sizeof (struct font_info)); in build_font_module() 616 laddr += archsw.arch_copyin(fd->vf_map[i], laddr, in build_font_module() 623 laddr += archsw.arch_copyin(fd->vf_bytes, laddr, fi.fi_bitmap_size); in build_font_module() 678 if (archsw.arch_loadaddr != NULL) in file_loadraw() [all …]
|
H A D | isapnp.c | 39 #define inb(x) (archsw.arch_isainb((x))) 40 #define outb(x, y) (archsw.arch_isaoutb((x), (y))) 287 if ((archsw.arch_isainb == NULL) || (archsw.arch_isaoutb == NULL)) in isapnp_enumerate()
|
H A D | misc.c | 74 archsw.arch_copyout(src++, &c, 1); in strlenout() 91 archsw.arch_copyout(str++, cp, 1); in strdupout() 109 archsw.arch_copyin(buf, dest, chunk); in kern_bzero() 130 if ((size_t)archsw.arch_readin(fd, dest, len) != len) { in kern_pread()
|
H A D | load_elf.c | 43 #define COPYOUT(s, d, l) archsw.arch_copyout((vm_offset_t)(s), d, l) 243 if (archsw.arch_loadaddr != NULL) in __elfN() 244 dest = archsw.arch_loadaddr(LOAD_ELF, ehdr, dest); in __elfN() 452 archsw.arch_copyin(ef->firstpage + in __elfN() 456 archsw.arch_copyin(ef->firstpage + in __elfN() 516 if (archsw.arch_loadseg != NULL) in __elfN() 517 archsw.arch_loadseg(ehdr, phdr + i, off); in __elfN() 634 archsw.arch_copyin(&size, lastaddr, sizeof (size)); in __elfN() 655 result = archsw.arch_readin(ef->fd, lastaddr, shdr[i].sh_size); in __elfN() 708 archsw.arch_copyout(php->p_paddr + off, dp, php->p_filesz); in __elfN() [all …]
|
H A D | devopen.c | 40 result = archsw.arch_getdev((void **)&dev, fname, file); in devopen()
|
H A D | load_elf_obj.c | 45 #define COPYOUT(s,d,l) archsw.arch_copyout((vm_offset_t)(s), d, l) 140 if (archsw.arch_loadaddr != NULL) in __elfN() 141 dest = archsw.arch_loadaddr(LOAD_ELF, hdr, dest); in __elfN()
|
H A D | ls.c | 176 if (archsw.arch_getdev(NULL, path, &cp)) { in ls_getdir()
|
H A D | reloc_elf.c | 43 #define COPYOUT(s,d,l) archsw.arch_copyout((vm_offset_t)(s), d, l)
|
H A D | boot.c | 106 if (archsw.arch_autoload() != 0) in command_boot()
|
H A D | bootstrap.h | 388 extern struct arch_switch archsw;
|
H A D | multiboot2.c | 265 fp->f_addr = archsw.arch_loadaddr(LOAD_KERN, filename, in multiboot2_loadfile() 272 fp->f_size = archsw.arch_readin(fd, fp->f_addr, st.st_size); in multiboot2_loadfile()
|
/illumos-gate/usr/src/boot/i386/gptzfsboot/ |
H A D | zfsboot.c | 129 struct arch_switch archsw; /* MI/MD interface boundary */ variable 212 archsw.arch_autoload = NULL; in main() 213 archsw.arch_getdev = i386_getdev; in main() 214 archsw.arch_copyin = NULL; in main() 215 archsw.arch_copyout = NULL; in main() 216 archsw.arch_readin = NULL; in main() 217 archsw.arch_isainb = NULL; in main() 218 archsw.arch_isaoutb = NULL; in main() 219 archsw.arch_zfs_probe = i386_zfs_probe; in main()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | linux.c | 206 if (archsw.arch_readin(fd, linux_data_tmp_addr+sizeof (lh), n) != n) { in linux_loadkernel() 221 if (archsw.arch_readin(fd, mem, text) != text) { in linux_loadkernel()
|
H A D | multiboot.c | 172 got = archsw.arch_readin(fd, laddr, 4096); in multiboot_loadfile()
|
/illumos-gate/usr/src/common/ficl/ |
H A D | loader.c | 361 archsw.arch_copyin(src, dest, len); in ficlCopyin() 384 archsw.arch_copyout(src, dest, len); in ficlCopyout() 447 hv = (archsw.arch_hypervisor != NULL) in ficlIsvirtualizedQ() 448 ? (*archsw.arch_hypervisor)() in ficlIsvirtualizedQ()
|
/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | zfs.c | 584 if (archsw.arch_zfs_probe == NULL) in zfs_dev_init() 586 archsw.arch_zfs_probe(); in zfs_dev_init() 792 archsw.arch_getdev((void **)&dev, NULL, NULL); in zfs_nvstore_sethook() 811 archsw.arch_getdev((void **)&dev, NULL, NULL); in zfs_nvstore_unsethook() 1426 if (archsw.arch_getdev((void **)&dev, devname, NULL) == 0) { in zfs_probe_dev()
|