tree: 1af9dc89d24bbdc9a641c9903e216a7566ef9d5a
  1. boot-shim/
  2. efi/
  3. include/
  4. lib/
  5. test/
  6. acpi.cc
  7. address-space-map.cc
  8. address-space.cc
  9. allocation-init.cc
  10. allocation.cc
  11. boot-options.cc
  12. boot-zbi.cc
  13. BUILD.gn
  14. cfi-runtime.cc
  15. devicetree_boot_test.gni
  16. elf-image-mapinto.cc
  17. elf-image-self-vmos.cc
  18. elf-image-vmos.cc
  19. elf-image.cc
  20. exception.cc
  21. handoff-entropy.cc
  22. handoff-entropy.h
  23. handoff-prep-version.cc
  24. handoff-prep-vm.cc
  25. handoff-prep-zbi.cc
  26. handoff-prep.cc
  27. handoff-prep.h
  28. kernel-elf-interp.sh
  29. kernel-package.cc
  30. kernel_elf_binary.gni
  31. kernel_elf_image.gni
  32. kernel_elf_interp.gni
  33. linuxboot-pic.ld
  34. log.cc
  35. log.h
  36. main-symbolize-cfi.cc
  37. main-symbolize.cc
  38. METADATA.textproto
  39. OWNERS
  40. panic.cc
  41. phys-elf-module.ld
  42. phys-end.ld
  43. phys.ld
  44. phys_executable.gni
  45. physboot.cc
  46. physboot.h
  47. physload-module.cc
  48. physload.cc
  49. physload.h
  50. physload_module.gni
  51. qemu.gni
  52. qemu_kernel_test.gni
  53. raw-header.S
  54. README.md
  55. self-relocation.cc
  56. shim_executable.gni
  57. stack.cc
  58. stdio.cc
  59. symbolize.cc
  60. trampoline-boot-arm64-zbi-boot.cc
  61. trampoline-boot.cc
  62. uart-console.cc
  63. ubsan-runtime.cc
  64. zbi-header.ld
  65. zbi-header.S
  66. zbi-init-memory.cc
  67. zbi-main.cc
  68. zbi-memory.cc
  69. zbi_executable.gni
  70. zbitl-allocation.cc
zircon/kernel/phys/README.md

kernel/phys -- Physical memory mode code for Zircon

This subdirectory contains code to support the “phys” environments for Zircon. The lib/arch overview provides a good description of what the various environments are and what constraints each has.

The main uses for this code are physboot, boot shims, and tests for those. In the future it will also cover a variety of EFI cases.

Testing

The project uses ZBI tests, built in all product configurations, including bringup and core. A basic set of tests can be executing by running the command:

fx run-boot-test zbi-phys-unittests

Other ZBI tests also exist in the project. The full list can be viewed by running:

fx run-zbi-test | grep //zircon/kernel/phys