github.com/icexin/eggos@v0.4.2-0.20220216025428-78b167e4f349/boot/boot64main.c (about) 1 typedef unsigned short uint16; 2 typedef unsigned int uint32; 3 typedef unsigned long uint64; 4 5 typedef void (*go_entry_t)(uint32, uint32); 6 7 void boot64main(uint32 gomain, uint32 magic, uint32 mbinfo) 8 { 9 go_entry_t go_entry; 10 go_entry = (go_entry_t)((uint64)gomain); 11 go_entry(magic, mbinfo); 12 for (;;) 13 { 14 } 15 }