mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	The current LMB API's for allocating and reserving memory use a per-caller based memory view. Memory allocated by a caller can then be overwritten by another caller. Make these allocations and reservations persistent using the alloced list data structure. Two alloced lists are declared -- one for the available(free) memory, and one for the used memory. Once full, the list can then be extended at runtime. [sjg: Use a stack to store pointer of lmb struct when running lmb tests] Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Signed-off-by: Simon Glass <sjg@chromium.org> [sjg: Optimise the logic to add a region in lmb_add_region_flags()]
		
			
				
	
	
		
			21 lines
		
	
	
		
			378 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			378 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0+ */
 | 
						|
/*
 | 
						|
 * Copyright 2009-2010 Freescale Semiconductor, Inc.
 | 
						|
 */
 | 
						|
 | 
						|
#ifndef _ASM_MP_H_
 | 
						|
#define _ASM_MP_H_
 | 
						|
 | 
						|
void setup_mp(void);
 | 
						|
void cpu_mp_lmb_reserve(void);
 | 
						|
u32 determine_mp_bootpg(unsigned int *pagesize);
 | 
						|
int is_core_disabled(int nr);
 | 
						|
 | 
						|
#ifdef CONFIG_E6500
 | 
						|
#define thread_to_core(x) (x >> 1)
 | 
						|
#else
 | 
						|
#define thread_to_core(x) (x)
 | 
						|
#endif
 | 
						|
 | 
						|
#endif
 |