| 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <arch/romstage.h> |
| 4 | #include <cpu/x86/smm.h> |
| 5 | #include <intelblocks/systemagent_server.h> |
| 6 | |
| 7 | void smm_region(uintptr_t *start, size_t *size) |
| 8 | { |
| 9 | *start = sa_server_get_tseg_base(); |
| 10 | *size = sa_server_get_tseg_size(); |
| 11 | } |
| 12 | |
| 13 | void fill_postcar_frame(struct postcar_frame *pcf) |
| 14 | { |
| 15 | /* |
| 16 | * `postcar_mtrr_setup()` will be skipped if using FSP to tear down CAR. |
| 17 | */ |
| 18 | if (!CONFIG(NO_FSP_TEMP_RAM_EXIT)) |
| 19 | return; |
| 20 | |
| 21 | /* |
| 22 | * Add MTRR for ramstage, TSEG and extended BIOS region if exiting CAR without FSP is supporated. |
| 23 | */ |
| 24 | _Static_assert(!CONFIG(NO_FSP_TEMP_RAM_EXIT), |
| 25 | "NO_FSP_TEMP_RAM_EXIT is not supportted currently!"); |
| 26 | } |