/* * @author xamidev * @brief Limine requests for boot * @description * The kernel makes a few requests to the Limine bootloader * in order to get precious information about the system. * We get a framebuffer, a memory map, the address of the * kernel in memory, and the Higher Half Direct Map offset. * @license GPL-3.0-only */ #include __attribute__((used, section(".limine_requests"))) volatile struct limine_framebuffer_request framebuffer_request = { .id = LIMINE_FRAMEBUFFER_REQUEST, .revision = 0 }; __attribute__((used, section(".limine_requests"))) volatile struct limine_memmap_request memmap_request = { .id = LIMINE_MEMMAP_REQUEST, .revision = 0 }; __attribute__((used, section(".limine_requests"))) volatile struct limine_hhdm_request hhdm_request = { .id = LIMINE_HHDM_REQUEST, .revision = 0 }; __attribute__((used, section(".limine_requests"))) volatile struct limine_kernel_address_request kerneladdr_request = { .id = LIMINE_KERNEL_ADDRESS_REQUEST, .revision = 0 }; __attribute__((used, section(".limine_requests_start"))) volatile LIMINE_REQUESTS_START_MARKER; __attribute__((used, section(".limine_requests_end"))) volatile LIMINE_REQUESTS_END_MARKER;