blob: 0efb462b402e5594a0231dcd6a065a11b13c3475 [file] [log] [blame]
Angel Pons8a3453f2020-04-02 23:48:19 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Arthur Heymanscf5af242019-11-04 21:24:28 +01002
3#include <cbmem.h>
4#include <fsp/util.h>
5
6void *cbmem_top_chipset(void)
7{
8 struct range_entry tolum;
9
10 fsp_find_bootloader_tolum(&tolum);
Felix Held46e6a582021-07-06 18:39:05 +020011 return (void *)(uintptr_t)range_entry_end(&tolum);
Arthur Heymanscf5af242019-11-04 21:24:28 +010012}