https://github.com/torvalds/linux
Raw File
Tip revision: 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee authored by Linus Torvalds on 02 August 2012, 23:38:10 UTC
Linux 3.6-rc1
Tip revision: 0d7614f
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