physaddr.h 192 B

1234567891011
  1. #include <asm/processor.h>
  2. static inline int phys_addr_valid(resource_size_t addr)
  3. {
  4. #ifdef CONFIG_PHYS_ADDR_T_64BIT
  5. return !(addr >> boot_cpu_data.x86_phys_bits);
  6. #else
  7. return 1;
  8. #endif
  9. }