Determines whether the memory address range is valid.
#include <library.h>
int validateaddressrange (
const void *addr,
size_t bytes)
(IN) Points to the address to validate.
(IN) Specifies the number of bytes to validate.
Returns 0 if the memory address is accessible for the specified number of bytes; otherwise returns -1.