blob: 2d594e60488102986d215967c193685b042e3c6a [file] [log] [blame]
Lee Leahy0946ec32015-04-20 15:24:54 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 Google Inc.
5 * Copyright (C) 2015 Intel Corp.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
Lee Leahy0946ec32015-04-20 15:24:54 -070015 */
16
Aaron Durbinc43d4172015-08-05 14:51:48 -050017#include <console/console.h>
Lee Leahy94b856e2015-10-15 12:07:03 -070018#include <fsp/memmap.h>
Lee Leahy0946ec32015-04-20 15:24:54 -070019#include <stage_cache.h>
20
21void stage_cache_external_region(void **base, size_t *size)
22{
Aaron Durbinc43d4172015-08-05 14:51:48 -050023 if (smm_subregion(SMM_SUBREGION_CACHE, base, size)) {
24 printk(BIOS_ERR, "ERROR: No cache SMM subregion.\n");
25 *base = NULL;
26 *size = 0;
27 }
Lee Leahy0946ec32015-04-20 15:24:54 -070028}