struct BootConstants

Defined at line 35 of file ../../zircon/kernel/phys/include/phys/boot-constants.h

This file provides what are constants as far as the kernel is concerned.

But physboot fills them in as variables as boot time. These constants are

found directly in RODATA by kernel code without indirection and without

anything else that can be clobbered. To keep the ZirconAbiSpec pointers to

a minimum, unrelated things are all gathered into this one struct. This

header lets them all be found directly with a cheap const variable access.

Things should be placed here only when they should be permanently accessible

as read-only global variables for the lifetime of the kernel proper after

boot. Things that are only needed temporarily at boot to initialize other

kernel state are instead passed in PhysHandoff (see

<phys

/handoff.h>), which

is discarded after boot time.

Since this header thus could be used by disparate parts of the kernel code,

its header dependencies should be kept to a minimum.

Public Members

uintptr_t kernel_physical_load_address
PhysHandoffPtr boot_options
zbi_hw_reboot_reason_t hw_reboot_reason
bool bypass_debuglog
PhysHandoffSpan mexec_data
PhysHandoffString kernel_debug_ident
PhysHandoffString kernel_version_ident
PhysHandoffString system_version_string
PhysHandoffSpan elf_build_id