Functions
-
zx_status_t PrepareDataZbi (zx::unowned_resource resource, zx::unowned_vmo data_zbi)Given an mexec-privileged resource, this method prepares the desired data
ZBI to be passed to `zx_system_mexec()`: it is extended with the
system-specified items given by `zx_system_mexec_payload_get()`, as well as
a SECURE_ENTROPY item for good measure.
Returns
* ZX_ERR_IO_DATA_INTEGRITY: if any ZBI format or storage access errors are
encountered;
* any status returned by `zx_system_mexec_payload_get()`.
Defined at line 40 of file ../../src/bringup/lib/mexec/mexec.cc
-
zx_status_t BootZbi (zx::unowned_resource resourcezx::vmo kernel_zbizx::vmo data_zbi)Boot a new kernel from the separate kernel and data ZBIs in the two VMOs.
This never returns if successful.
Defined at line 71 of file ../../src/bringup/lib/mexec/mexec.cc