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

TOMOYO Linux Cross Reference
Linux/arch/mips/mm/pgtable-32.c

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/mips/mm/pgtable-32.c (Version linux-6.12-rc7) and /arch/sparc64/mm/pgtable-32.c (Version linux-6.11.7)


  1 /*                                                  1 
  2  * This file is subject to the terms and condi    
  3  * License.  See the file "COPYING" in the mai    
  4  * for more details.                              
  5  *                                                
  6  * Copyright (C) 2003 by Ralf Baechle             
  7  */                                               
  8 #include <linux/init.h>                           
  9 #include <linux/mm.h>                             
 10 #include <linux/memblock.h>                       
 11 #include <linux/highmem.h>                        
 12 #include <asm/fixmap.h>                           
 13 #include <asm/pgalloc.h>                          
 14 #include <asm/tlbflush.h>                         
 15                                                   
 16 void pgd_init(void *addr)                         
 17 {                                                 
 18         unsigned long *p = (unsigned long *)ad    
 19         int i;                                    
 20                                                   
 21         for (i = 0; i < USER_PTRS_PER_PGD; i+=    
 22                 p[i + 0] = (unsigned long) inv    
 23                 p[i + 1] = (unsigned long) inv    
 24                 p[i + 2] = (unsigned long) inv    
 25                 p[i + 3] = (unsigned long) inv    
 26                 p[i + 4] = (unsigned long) inv    
 27                 p[i + 5] = (unsigned long) inv    
 28                 p[i + 6] = (unsigned long) inv    
 29                 p[i + 7] = (unsigned long) inv    
 30         }                                         
 31 }                                                 
 32                                                   
 33 #if defined(CONFIG_TRANSPARENT_HUGEPAGE)          
 34 pmd_t mk_pmd(struct page *page, pgprot_t prot)    
 35 {                                                 
 36         pmd_t pmd;                                
 37                                                   
 38         pmd_val(pmd) = (page_to_pfn(page) << P    
 39                                                   
 40         return pmd;                               
 41 }                                                 
 42                                                   
 43                                                   
 44 void set_pmd_at(struct mm_struct *mm, unsigned    
 45                 pmd_t *pmdp, pmd_t pmd)           
 46 {                                                 
 47         *pmdp = pmd;                              
 48 }                                                 
 49 #endif /* defined(CONFIG_TRANSPARENT_HUGEPAGE)    
 50                                                   
 51 void __init pagetable_init(void)                  
 52 {                                                 
 53         unsigned long vaddr;                      
 54         pgd_t *pgd_base;                          
 55 #ifdef CONFIG_HIGHMEM                             
 56         pgd_t *pgd;                               
 57         p4d_t *p4d;                               
 58         pud_t *pud;                               
 59         pmd_t *pmd;                               
 60         pte_t *pte;                               
 61 #endif                                            
 62                                                   
 63         /* Initialize the entire pgd.  */         
 64         pgd_init(swapper_pg_dir);                 
 65         pgd_init(&swapper_pg_dir[USER_PTRS_PER    
 66                                                   
 67         pgd_base = swapper_pg_dir;                
 68                                                   
 69         /*                                        
 70          * Fixed mappings:                        
 71          */                                       
 72         vaddr = __fix_to_virt(__end_of_fixed_a    
 73         fixrange_init(vaddr & PMD_MASK, vaddr     
 74                                                   
 75 #ifdef CONFIG_HIGHMEM                             
 76         /*                                        
 77          * Permanent kmaps:                       
 78          */                                       
 79         vaddr = PKMAP_BASE;                       
 80         fixrange_init(vaddr & PMD_MASK, vaddr     
 81                                                   
 82         pgd = swapper_pg_dir + pgd_index(vaddr    
 83         p4d = p4d_offset(pgd, vaddr);             
 84         pud = pud_offset(p4d, vaddr);             
 85         pmd = pmd_offset(pud, vaddr);             
 86         pte = pte_offset_kernel(pmd, vaddr);      
 87         pkmap_page_table = pte;                   
 88 #endif                                            
 89 }                                                 
 90                                                   

~ [ 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