mirror of
				https://git.proxmox.com/git/grub2
				synced 2025-10-31 10:09:59 +00:00 
			
		
		
		
	 065ad910f1
			
		
	
	
		065ad910f1
		
	
	
	
	
		
			
			Previously we relied on assumption that clang always needs -no-integrated-as but it's not always true.
		
			
				
	
	
		
			21 lines
		
	
	
		
			257 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			257 B
		
	
	
	
		
			ArmAsm
		
	
	
	
	
	
| /* on arm clang doesn't support .arch directive */
 | |
| 
 | |
| 	.text
 | |
| 	.syntax	unified
 | |
| 
 | |
| #if !defined (__thumb2__)
 | |
| 	.arch	armv7a
 | |
| 	.arm
 | |
| #else
 | |
| 	.arch	armv7
 | |
| 	.thumb
 | |
| #endif
 | |
| 	mcr	p15, 0, r11, c7, c14, 2
 | |
| 
 | |
| 	/* clang restricts access to dsb/isb despite .arch  */
 | |
| 	dsb
 | |
| 	isb
 | |
| 
 | |
| 
 | |
| 	
 |