Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.
C
/*
* The IOKit half of drivers/core/hakios.stubs.c: what the rest of the kernel calls in a driver that is left out of it,
* for the calls that are C++ (docs/drivers-config.md).
*/
#include "MiniIOSurface.h"
#ifndef HAKIOS_ADRENO
/* the display's driver asks whether the GPU is done with a surface before it shows it: with no GPU nothing draws into one */
bool
MiniIOSurfaceDrawn(__unused MiniIOSurface * surface, __unused uint64_t milliseconds)
{
return true;
}
#endif