#include #include void __main main(struct init_data_t d) { /* TODO: approximate order of business: * setup debugging in vmem (requires mapping fdt) * free unnecessary init * setup interrupts (should this be done in init?) * load init from initrd * setup init environment (thread control blocks etc.) * jumpstart init (free stack init setup) */ /* functionality that should be implemented: * figure out best continuous run of memory (pmap etc) * arbitrary mapping and kernel mapping (memory) */ }