mirror of
				https://source.denx.de/u-boot/u-boot.git
				synced 2025-10-31 16:31:25 +01:00 
			
		
		
		
	This patch adds LZO decompression support to U-Boot. It is needed for the upcoming UBIFS support, since UBIFS uses LZO as default compressor/ decompressor. Since we only support read-only in UBIFS, only the decompressor is needed. All this is copied with minor changes from the current Linux kernel version (2.6.28-rc8). This patch only implements this LZO decompressor support for PPC. Other platforms using UBIFS will have to add the required "include/asm/unaligned.h" as well. It should be fairly easy to copy this from the Linux source tree as I have done it for PPC in this patch. Signed-off-by: Stefan Roese <sr@denx.de>
		
			
				
	
	
		
			17 lines
		
	
	
		
			383 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			383 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _ASM_POWERPC_UNALIGNED_H
 | |
| #define _ASM_POWERPC_UNALIGNED_H
 | |
| 
 | |
| #ifdef __KERNEL__
 | |
| 
 | |
| /*
 | |
|  * The PowerPC can do unaligned accesses itself in big endian mode.
 | |
|  */
 | |
| #include <linux/unaligned/access_ok.h>
 | |
| #include <linux/unaligned/generic.h>
 | |
| 
 | |
| #define get_unaligned	__get_unaligned_be
 | |
| #define put_unaligned	__put_unaligned_be
 | |
| 
 | |
| #endif	/* __KERNEL__ */
 | |
| #endif	/* _ASM_POWERPC_UNALIGNED_H */
 |