Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #include <asm/processor.h>
0003 
0004 static inline int phys_addr_valid(resource_size_t addr)
0005 {
0006 #ifdef CONFIG_PHYS_ADDR_T_64BIT
0007     return !(addr >> boot_cpu_data.x86_phys_bits);
0008 #else
0009     return 1;
0010 #endif
0011 }