Arthur Heymans | cf5af24 | 2019-11-04 21:24:28 +0100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License as published by |
| 6 | * the Free Software Foundation; version 2 of the License. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | #include <cbmem.h> |
| 15 | #include <fsp/util.h> |
| 16 | |
| 17 | void *cbmem_top_chipset(void) |
| 18 | { |
| 19 | struct range_entry tolum; |
| 20 | |
| 21 | fsp_find_bootloader_tolum(&tolum); |
| 22 | return (void *)(uintptr_t)range_entry_end(&tolum); |
| 23 | } |