CBMEM: Do not use get_top_of_ram() with DYNAMIC_CBMEM
The name was always obscure and confusing. Instead define cbmem_top() directly in the chipset code for x86 like on ARMs. TODO: Check TSEG alignment, it used for MTRR programming. Change-Id: Ibbe5f05ab9c7d87d09caa673766cd17d192cd045 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/7888 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
@ -190,6 +190,8 @@ void backup_top_of_ram(uint64_t ramtop);
|
||||
void cbmem_late_set_table(uint64_t base, uint64_t size);
|
||||
#endif
|
||||
|
||||
unsigned long get_top_of_ram(void);
|
||||
|
||||
void get_cbmem_table(uint64_t *base, uint64_t *size);
|
||||
struct cbmem_entry *get_cbmem_toc(void);
|
||||
|
||||
@ -201,8 +203,6 @@ static inline const struct cbmem_entry *cbmem_entry_find(uint32_t id)
|
||||
|
||||
/* Common API between cbmem and dynamic cbmem. */
|
||||
|
||||
unsigned long get_top_of_ram(void);
|
||||
|
||||
/* Returns 0 if old cbmem was recovered. Recovery is only attempted if
|
||||
* s3resume is non-zero. */
|
||||
int cbmem_recovery(int s3resume);
|
||||
|
Reference in New Issue
Block a user