tree: fac3a8232552e9c48562d69fc727e99d9e006d89 [search]
  1. boot-shim/
  2. boot-zbi/
  3. handoff/
  4. handoff-prep/
  5. include/
  6. kernel-package/
  7. lib/
  8. log/
  9. physboot/
  10. runtime/
  11. test/
  12. uart/
  13. address-space-map.cc
  14. address-space.cc
  15. allocation-init.cc
  16. allocation.cc
  17. boot-options.cc
  18. BUILD.bazel
  19. BUILD.gn
  20. devicetree_boot_test.gni
  21. elf-image-mapinto.cc
  22. elf-image.cc
  23. kernel-elf-interp.sh
  24. kernel_elf_binary.gni
  25. kernel_elf_image.gni
  26. kernel_elf_interp.gni
  27. linuxboot-embed.cc
  28. linuxboot-embed.py
  29. linuxboot-pic.ld
  30. linuxboot_embed.gni
  31. METADATA.textproto
  32. OWNERS
  33. panic.cc
  34. phys-end.ld
  35. phys.ld
  36. phys_executable.gni
  37. qemu.gni
  38. qemu_kernel_test.gni
  39. raw-header.S
  40. README.md
  41. shim_executable.gni
  42. stdio.cc
  43. symbolize.cc
  44. ubsan-runtime.cc
  45. zbi-header.ld
  46. zbi-header.S
  47. zbi-init-memory.cc
  48. zbi-main.cc
  49. zbi-memory.cc
  50. zbi_executable.gni
  51. 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