Viewing: boot_info.h
📄 boot_info.h (Read Only) ⬅ To go back
#ifndef KERNEL_BOOT_INFO_H
#define KERNEL_BOOT_INFO_H

#include <stdint.h>
#include <stddef.h>

struct boot_info {
    uintptr_t arch_magic;
    uintptr_t arch_boot_info;

    uintptr_t initrd_start;
    uintptr_t initrd_end;

    const char* cmdline;

    uintptr_t fb_addr;
    uint32_t  fb_pitch;
    uint32_t  fb_width;
    uint32_t  fb_height;
    uint8_t   fb_bpp;
    uint8_t   fb_type;      /* 0=indexed, 1=direct RGB (linear), 2=EGA text */
};

#endif