RELOCATABLE_RAMSTAGE: Fix weak symbols with ramstage_cache
We had NULL reference with cache_loaded_ramstage() if CACHE_RELOCATED_RAMSTAGE_OUTSIDE_CBMEM was not set so boot never proceeded to ramstage. Cache implementation outside CBMEM provides means for platform-specific location so there is no need of weak attributes here. Change-Id: I1eb1a713896395c424fde23252c374f9065fe74d Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7954 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
		| @@ -92,13 +92,11 @@ struct cbmem_entry; | ||||
|  * structure to store information, but note that the handoff variable can be | ||||
|  * NULL. The ramstage cbmem_entry represents the region occupied by the loaded | ||||
|  * ramstage. */ | ||||
| void __attribute__((weak)) | ||||
| cache_loaded_ramstage(struct romstage_handoff *handoff, | ||||
| void cache_loaded_ramstage(struct romstage_handoff *handoff, | ||||
|                       const struct cbmem_entry *ramstage, void *entry_point); | ||||
| /* Return NULL on error or entry point on success. The ramstage cbmem_entry is | ||||
|  * the region where to load the cached contents to. */ | ||||
| void * __attribute__((weak)) | ||||
| load_cached_ramstage(struct romstage_handoff *handoff, | ||||
| void * load_cached_ramstage(struct romstage_handoff *handoff, | ||||
|                      const struct cbmem_entry *ramstage); | ||||
| #else  /* CONFIG_RELOCATABLE_RAMSTAGE */ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user