mirror of
https://gitlab.com/bztsrc/posix-uefi.git
synced 2025-01-01 03:25:52 +01:00
13 lines
313 B
C
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;
|
|
}
|