posix-uefi/examples/03_dumpmem/dumpmem.c
2021-02-16 13:47:43 +01:00

13 lines
313 B
C

#include <uefi.h>
/**
* Dump memory at given address, should accept 0x prefixes from the command line
*/
int main(int argc, char **argv)
{
efi_physical_address_t address =
(argc < 2 ? (efi_physical_address_t)IM : (efi_physical_address_t)atol(argv[1]));
printf("%4D", address);
return 0;
}