summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-02 13:19:39 +0300
committerMartin Roth <martinroth@google.com>2019-07-07 21:27:22 +0000
commit78561f481e3c25e23dc658f883a16402fd9d38f6 (patch)
treef863d7cc4e50e2ce4780ad562a1eb6702cc3e521 /src/lib
parenteb5e47dd9467602d09a3f8e6e4cf5dd702bb0cc4 (diff)
downloadcoreboot-78561f481e3c25e23dc658f883a16402fd9d38f6.tar.xz
lib/romstage_stack.c: Remove file
After platforms have moved to POSTCAR_STAGE=y the only remaining user is binaryPI now. Make it simpler. Change-Id: Ia70c5c85e06c42f965fb7204b633db9b619e2e84 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33957 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Makefile.inc2
-rw-r--r--src/lib/romstage_stack.c34
2 files changed, 0 insertions, 36 deletions
diff --git a/src/lib/Makefile.inc b/src/lib/Makefile.inc
index 16d5c649b2..f6d3f6deb5 100644
--- a/src/lib/Makefile.inc
+++ b/src/lib/Makefile.inc
@@ -89,9 +89,7 @@ ramstage-y += region_file.c
romstage-y += region_file.c
ramstage-y += romstage_handoff.c
romstage-y += romstage_handoff.c
-romstage-y += romstage_stack.c
romstage-y += selfboot.c
-ramstage-y += romstage_stack.c
romstage-y += stack.c
ramstage-y += rtc.c
diff --git a/src/lib/romstage_stack.c b/src/lib/romstage_stack.c
deleted file mode 100644
index 4fe1459532..0000000000
--- a/src/lib/romstage_stack.c
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2013 Google Inc.
- * Copyright (C) 2015-2016 Intel Corp.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include <program_loading.h>
-#include <cbmem.h>
-
-/*
- * Romstage needs quite a bit of stack for decompressing images since the lzma
- * lib keeps its state on the stack during romstage.
- */
-#define ROMSTAGE_RAM_STACK_SIZE 0x5000
-
-uintptr_t romstage_ram_stack_base(size_t size, int src)
-{
- /* cbmem_add() does a find() before add(). */
- if (src == ROMSTAGE_STACK_CBMEM)
- return (uintptr_t)cbmem_add(CBMEM_ID_ROMSTAGE_RAM_STACK, size);
- if (src == ROMSTAGE_STACK_LOW_MEM)
- return CONFIG_RAMTOP - size;
- return 0;
-}