~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/alpha/include/asm/page.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/alpha/include/asm/page.h (Architecture alpha) and /arch/i386/include/asm-i386/page.h (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0 */              1 
  2 #ifndef _ALPHA_PAGE_H                             
  3 #define _ALPHA_PAGE_H                             
  4                                                   
  5 #include <linux/const.h>                          
  6 #include <asm/pal.h>                              
  7                                                   
  8 /* PAGE_SHIFT determines the page size */         
  9 #define PAGE_SHIFT      CONFIG_PAGE_SHIFT         
 10 #define PAGE_SIZE       (_AC(1,UL) << PAGE_SHI    
 11 #define PAGE_MASK       (~(PAGE_SIZE-1))          
 12                                                   
 13 #ifndef __ASSEMBLY__                              
 14                                                   
 15 #define STRICT_MM_TYPECHECKS                      
 16                                                   
 17 extern void clear_page(void *page);               
 18 #define clear_user_page(page, vaddr, pg)          
 19                                                   
 20 #define vma_alloc_zeroed_movable_folio(vma, va    
 21         vma_alloc_folio(GFP_HIGHUSER_MOVABLE |    
 22                                                   
 23 extern void copy_page(void * _to, void * _from    
 24 #define copy_user_page(to, from, vaddr, pg)       
 25                                                   
 26 #ifdef STRICT_MM_TYPECHECKS                       
 27 /*                                                
 28  * These are used to make use of C type-checki    
 29  */                                               
 30 typedef struct { unsigned long pte; } pte_t;      
 31 typedef struct { unsigned long pmd; } pmd_t;      
 32 typedef struct { unsigned long pgd; } pgd_t;      
 33 typedef struct { unsigned long pgprot; } pgpro    
 34                                                   
 35 #define pte_val(x)      ((x).pte)                 
 36 #define pmd_val(x)      ((x).pmd)                 
 37 #define pgd_val(x)      ((x).pgd)                 
 38 #define pgprot_val(x)   ((x).pgprot)              
 39                                                   
 40 #define __pte(x)        ((pte_t) { (x) } )        
 41 #define __pmd(x)        ((pmd_t) { (x) } )        
 42 #define __pgd(x)        ((pgd_t) { (x) } )        
 43 #define __pgprot(x)     ((pgprot_t) { (x) } )     
 44                                                   
 45 #else                                             
 46 /*                                                
 47  * .. while these make it easier on the compil    
 48  */                                               
 49 typedef unsigned long pte_t;                      
 50 typedef unsigned long pmd_t;                      
 51 typedef unsigned long pgd_t;                      
 52 typedef unsigned long pgprot_t;                   
 53                                                   
 54 #define pte_val(x)      (x)                       
 55 #define pmd_val(x)      (x)                       
 56 #define pgd_val(x)      (x)                       
 57 #define pgprot_val(x)   (x)                       
 58                                                   
 59 #define __pte(x)        (x)                       
 60 #define __pgd(x)        (x)                       
 61 #define __pgprot(x)     (x)                       
 62                                                   
 63 #endif /* STRICT_MM_TYPECHECKS */                 
 64                                                   
 65 typedef struct page *pgtable_t;                   
 66                                                   
 67 #ifdef USE_48_BIT_KSEG                            
 68 #define PAGE_OFFSET             0xffff80000000    
 69 #else                                             
 70 #define PAGE_OFFSET             0xfffffc000000    
 71 #endif                                            
 72                                                   
 73 #else                                             
 74                                                   
 75 #ifdef USE_48_BIT_KSEG                            
 76 #define PAGE_OFFSET             0xffff80000000    
 77 #else                                             
 78 #define PAGE_OFFSET             0xfffffc000000    
 79 #endif                                            
 80                                                   
 81 #endif /* !__ASSEMBLY__ */                        
 82                                                   
 83 #define __pa(x)                 ((unsigned lon    
 84 #define __va(x)                 ((void *)((uns    
 85                                                   
 86 #define virt_to_page(kaddr)     pfn_to_page(__    
 87 #define virt_addr_valid(kaddr)  pfn_valid((__p    
 88                                                   
 89 #include <asm-generic/memory_model.h>             
 90 #include <asm-generic/getorder.h>                 
 91                                                   
 92 #endif /* _ALPHA_PAGE_H */                        
 93                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php