mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	Squashfs wasn't compiling because the lldiv() directives turn into __udivdi3 and we are using private libgcc. After this squashfs compiles for MIPS. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Tested-by: Bartel Eerdekens <barteleerdekens@gmail.com>
		
			
				
	
	
		
			18 lines
		
	
	
		
			246 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			246 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0 */
 | 
						|
 | 
						|
#include "libgcc.h"
 | 
						|
 | 
						|
#if BITS_PER_LONG == 32
 | 
						|
 | 
						|
#include <div64.h>
 | 
						|
 | 
						|
long long __udivdi3(long long u, word_type b)
 | 
						|
{
 | 
						|
	long long ret = u;
 | 
						|
 | 
						|
	__div64_32(&ret, b);
 | 
						|
	return ret;
 | 
						|
}
 | 
						|
 | 
						|
#endif /* BITS_PER_LONG == 32 */
 |