https://github.com/torvalds/linux
Raw File
Tip revision: 620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc authored by Linus Torvalds on 11 July 2011, 23:51:52 UTC
Linux 3.0-rc7
Tip revision: 620917d
physaddr.h
#include <asm/processor.h>

static inline int phys_addr_valid(resource_size_t addr)
{
#ifdef CONFIG_PHYS_ADDR_T_64BIT
	return !(addr >> boot_cpu_data.x86_phys_bits);
#else
	return 1;
#endif
}
back to top