![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/self/root/usr/src/linux-headers-5.4.0-198/arch/arc/include/asm/ |
Upload File : |
/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2016 Synopsys, Inc. (www.synopsys.com) */ #ifndef _ASM_ARC_MMZONE_H #define _ASM_ARC_MMZONE_H #ifdef CONFIG_DISCONTIGMEM extern struct pglist_data node_data[]; #define NODE_DATA(nid) (&node_data[nid]) static inline int pfn_to_nid(unsigned long pfn) { int is_end_low = 1; if (IS_ENABLED(CONFIG_ARC_HAS_PAE40)) is_end_low = pfn <= virt_to_pfn(0xFFFFFFFFUL); /* * node 0: lowmem: 0x8000_0000 to 0xFFFF_FFFF * node 1: HIGHMEM w/o PAE40: 0x0 to 0x7FFF_FFFF * HIGHMEM with PAE40: 0x1_0000_0000 to ... */ if (pfn >= ARCH_PFN_OFFSET && is_end_low) return 0; return 1; } static inline int pfn_valid(unsigned long pfn) { int nid = pfn_to_nid(pfn); return (pfn <= node_end_pfn(nid)); } #endif /* CONFIG_DISCONTIGMEM */ #endif