sparc64: Don't use _PAGE_PRESENT in pte_modify() mask.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
					parent
					
						
							
								c2e4e676ad
							
						
					
				
			
			
				commit
				
					
						eaf85da826
					
				
			
		
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -258,8 +258,8 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t prot) | ||||||
| { | { | ||||||
| 	unsigned long mask, tmp; | 	unsigned long mask, tmp; | ||||||
| 
 | 
 | ||||||
| 	/* SUN4U: 0x630107ffffffecb8 (negated == 0x9cfef80000001347)
 | 	/* SUN4U: 0x630107ffffffec38 (negated == 0x9cfef800000013c7)
 | ||||||
| 	 * SUN4V: 0x33ffffffffffee17 (negated == 0xcc000000000011e8) | 	 * SUN4V: 0x33ffffffffffee07 (negated == 0xcc000000000011f8) | ||||||
| 	 * | 	 * | ||||||
| 	 * Even if we use negation tricks the result is still a 6 | 	 * Even if we use negation tricks the result is still a 6 | ||||||
| 	 * instruction sequence, so don't try to play fancy and just | 	 * instruction sequence, so don't try to play fancy and just | ||||||
|  | @ -289,10 +289,10 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t prot) | ||||||
| 	"	.previous\n" | 	"	.previous\n" | ||||||
| 	: "=r" (mask), "=r" (tmp) | 	: "=r" (mask), "=r" (tmp) | ||||||
| 	: "i" (_PAGE_PADDR_4U | _PAGE_MODIFIED_4U | _PAGE_ACCESSED_4U | | 	: "i" (_PAGE_PADDR_4U | _PAGE_MODIFIED_4U | _PAGE_ACCESSED_4U | | ||||||
| 	       _PAGE_CP_4U | _PAGE_CV_4U | _PAGE_E_4U | _PAGE_PRESENT_4U | | 	       _PAGE_CP_4U | _PAGE_CV_4U | _PAGE_E_4U | | ||||||
| 	       _PAGE_SPECIAL | _PAGE_PMD_HUGE | _PAGE_SZALL_4U), | 	       _PAGE_SPECIAL | _PAGE_PMD_HUGE | _PAGE_SZALL_4U), | ||||||
| 	  "i" (_PAGE_PADDR_4V | _PAGE_MODIFIED_4V | _PAGE_ACCESSED_4V | | 	  "i" (_PAGE_PADDR_4V | _PAGE_MODIFIED_4V | _PAGE_ACCESSED_4V | | ||||||
| 	       _PAGE_CP_4V | _PAGE_CV_4V | _PAGE_E_4V | _PAGE_PRESENT_4V | | 	       _PAGE_CP_4V | _PAGE_CV_4V | _PAGE_E_4V | | ||||||
| 	       _PAGE_SPECIAL | _PAGE_PMD_HUGE | _PAGE_SZALL_4V)); | 	       _PAGE_SPECIAL | _PAGE_PMD_HUGE | _PAGE_SZALL_4V)); | ||||||
| 
 | 
 | ||||||
| 	return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); | 	return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 David S. Miller
				David S. Miller