mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 14:00:19 +00:00 
			
		
		
		
	omap4: board: change global data pointer to file scope
DECLARE_GLOBAL_DATA_PTR is currently defined within the scope of function while it is a global pointer. Change the scope of definition to replicate it's global scope. This seems to help gcc 4.5 optimizations as well. Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This commit is contained in:
		
							parent
							
								
									eb9a28f699
								
							
						
					
					
						commit
						93e3568bd5
					
				@ -32,6 +32,8 @@
 | 
			
		||||
#include <asm/arch/sys_proto.h>
 | 
			
		||||
#include <asm/sizes.h>
 | 
			
		||||
 | 
			
		||||
DECLARE_GLOBAL_DATA_PTR;
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 * Routine: s_init
 | 
			
		||||
 * Description: Does early system init of muxing and clocks.
 | 
			
		||||
@ -100,7 +102,6 @@ u32 sdram_size(void)
 | 
			
		||||
 */
 | 
			
		||||
int dram_init(void)
 | 
			
		||||
{
 | 
			
		||||
	DECLARE_GLOBAL_DATA_PTR;
 | 
			
		||||
 | 
			
		||||
	gd->ram_size = sdram_size();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user