Skip to content

oito8bits/antboot

Repository files navigation

antboot

UEFI Bootloader for x86-64 architecture. This is submodule of Ant repository.

How to build

You will need:

  • x86_64-w64-mingw32-gcc (install gcc-mingw-w64)
  • make
  • as (Gnu Assembler)

After installing the dependencies, just run:

$ make

How to use

To use, simply create a FAT partition and place BOOTX64.EFI in the efi/boot/ directory and the kernel elf in boot/. A usage example can be seen here.

A structure pointer will be passed to the kernel through the RDI register. The structure is as follows:

struct boot_info
{
  struct memory_map map;    
  struct gop_video_mode mode;
  struct ramfs ramfs;
  UINT64 kernel_entry;
  UINT64 kernel_size;
  VOID *smbios;
  VOID *acpi;
};

About

UEFI Bootloader for x86-64 architecture.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published