Angel Pons | 8a3453f | 2020-04-02 23:48:19 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Arthur Heymans | cf5af24 | 2019-11-04 21:24:28 +0100 | [diff] [blame] | 2 | |
3 | #include <cbmem.h> | ||||
4 | #include <fsp/util.h> | ||||
5 | |||||
6 | void *cbmem_top_chipset(void) | ||||
7 | { | ||||
8 | struct range_entry tolum; | ||||
9 | |||||
10 | fsp_find_bootloader_tolum(&tolum); | ||||
Felix Held | 46e6a58 | 2021-07-06 18:39:05 +0200 | [diff] [blame^] | 11 | return (void *)(uintptr_t)range_entry_end(&tolum); |
Arthur Heymans | cf5af24 | 2019-11-04 21:24:28 +0100 | [diff] [blame] | 12 | } |