Repository navigation
duefi.h
WARNING: This ASM Code use 2 ABI for calls Microsoft ABI x64 & System V, MS ABI for UEFI, System V for code, customize at own risk
Linking by #include <duefi.h>, compiling by adding duefi.o in linker.
Structure that contains data about file at disk in FAT32 filesystem.
typedef struct ddir_entry {
u64 file_size; // Size of file
u64 name_len; // Lenght of name in buffer
u32 name[0xF8]; // File name buffer
} ddir_entry_tLoad file data in buffer buf, path is null-term string cast to u16 str[] = { 'T', 'E', .., 0 }, size is size of buffer buf (sizeof(buf)). Returns readed bytes of EFI_STATUS.
List every .elf files in dir, path is null-term string cast to u16 str[] = { 'T', 'E', .., 0 }, buf is buffer, max is maximal count of elements. Returns 0 at success
Returns 0 at success, 2 at invalid parameter, 14 if not found. In first arg returns pointer to table
Returns 0 at success, 2 at invalid parameter, 14 if not found. In first arg you receiver Required GUID in UEFI, in second you get pointer to struct
Returns 0 at success, 2 at invalid parameter. In first arg you get pointer at struct.
Stop CPU at X mcs.
Write data from buf to file, path is null-term string cast to u16 str[] = { 'T', 'E', .., 0 }, size is size of buffer buf (sizeof(buf)). Returns 0 at success
Returns total RAM in bytes. In first arg you receive BootServices.
In first arg you receive BootServices. buffer is buffer for handles, size is size/pointer at count. Returns EFI_STATUS.
In first arg you receive BootServices. buffer is handle of device, iface is pointer fore saving interface. Returns EFI_STATUS.