dumpmem.c 313 B

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