mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	MIPS: CPS: Use GlobalNumber macros rather than magic numbers
We now have definitions for the GlobalNumber register in asm/mipsregs.h, so use them in place of magic numbers in cps-vec.S. Signed-off-by: Paul Burton <paul.burton@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/17008/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
		
							parent
							
								
									c6593dded1
								
							
						
					
					
						commit
						15e6529fc3
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -327,8 +327,8 @@ LEAF(mips_cps_get_bootcfg)
 | 
				
			||||||
	 * to handle contiguous VP numbering, but no such systems yet
 | 
						 * to handle contiguous VP numbering, but no such systems yet
 | 
				
			||||||
	 * exist.
 | 
						 * exist.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	mfc0	t9, $3, 1
 | 
						mfc0	t9, CP0_GLOBALNUMBER
 | 
				
			||||||
	andi	t9, t9, 0xff
 | 
						andi	t9, t9, MIPS_GLOBALNUMBER_VP
 | 
				
			||||||
#elif defined(CONFIG_MIPS_MT_SMP)
 | 
					#elif defined(CONFIG_MIPS_MT_SMP)
 | 
				
			||||||
	has_mt	ta2, 1f
 | 
						has_mt	ta2, 1f
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue