// SPDX-License-Identifier: GPL-2.0 #include <linux/bootmem.h> #include <linux/mmdebug.h> #include <linux/export.h> #include <linux/mm.h> #include <asm/page.h> #include "physaddr.h" #ifdef CONFIG_X86_64 #ifdef CONFIG_DEBUG_VIRTUAL
unsigned long __phys_addr(unsigned long x) { unsigned long y = x - __START_KERNEL_map; /* use the carry flag to determine if x was < __START_KERNEL_map */ if (unlikely(x > y)) { x = y + phys_base; VIRTUAL_BUG_ON(y >= KERNEL_IMAGE_SIZE); } else { x = y + (__START_KERNEL_map - PAGE_OFFSET); /* carry flag will be set if starting x was >= PAGE_OFFSET */ VIRTUAL_BUG_ON((x > y) || !phys_addr_valid(x)); } return x; }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeremy Fitzhardinge | 42 | 56.00% | 1 | 50.00% |
Alexander Duyck | 33 | 44.00% | 1 | 50.00% |
Total | 75 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Alexander Duyck | 31 | 100.00% | 1 | 100.00% |
Total | 31 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jeremy Fitzhardinge | 50 | 60.24% | 1 | 50.00% |
Alexander Duyck | 33 | 39.76% | 1 | 50.00% |
Total | 83 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Dave Hansen | 41 | 54.67% | 1 | 50.00% |
Jeremy Fitzhardinge | 34 | 45.33% | 1 | 50.00% |
Total | 75 | 100.00% | 2 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jeremy Fitzhardinge | 55 | 100.00% | 1 | 100.00% |
Total | 55 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Jeremy Fitzhardinge | 228 | 59.84% | 1 | 16.67% |
Alexander Duyck | 107 | 28.08% | 2 | 33.33% |
Dave Hansen | 44 | 11.55% | 1 | 16.67% |
Greg Kroah-Hartman | 1 | 0.26% | 1 | 16.67% |
Paul Gortmaker | 1 | 0.26% | 1 | 16.67% |
Total | 381 | 100.00% | 6 | 100.00% |