summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-07-01 12:19:48 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-07-04 06:54:06 +0000
commit70b421f3bd81923c01e16989dfec045d56a5c447 (patch)
tree12a2957c025b2a1ba0da219f83c7082deb60839e /src
parent6e2d0c1b90251b4b61af582d2598cdbd38591db7 (diff)
lib/romstage_stack.c: Remove unused functions
Change-Id: I1e66ff3fe7462dfeae2a7ce7e3a8083cf90a15f9 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33936 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/include/program_loading.h2
-rw-r--r--src/lib/romstage_stack.c17
2 files changed, 0 insertions, 19 deletions
diff --git a/src/include/program_loading.h b/src/include/program_loading.h
index 7be59e2878..223fc0bef1 100644
--- a/src/include/program_loading.h
+++ b/src/include/program_loading.h
@@ -176,8 +176,6 @@ void run_ramstage(void);
/* Determine where stack for ramstage loader is located. */
enum { ROMSTAGE_STACK_CBMEM, ROMSTAGE_STACK_LOW_MEM };
uintptr_t romstage_ram_stack_base(size_t size, int src);
-uintptr_t romstage_ram_stack_top(void);
-uintptr_t romstage_ram_stack_bottom(void);
/* Backup OS memory to CBMEM_ID_RESUME on ACPI S3 resume path,
* if ramstage overwrites low memory. */
diff --git a/src/lib/romstage_stack.c b/src/lib/romstage_stack.c
index ed6f09b4cb..4fe1459532 100644
--- a/src/lib/romstage_stack.c
+++ b/src/lib/romstage_stack.c
@@ -32,20 +32,3 @@ uintptr_t romstage_ram_stack_base(size_t size, int src)
return CONFIG_RAMTOP - size;
return 0;
}
-
-uintptr_t romstage_ram_stack_bottom(void)
-{
- return romstage_ram_stack_base(ROMSTAGE_RAM_STACK_SIZE,
- ROMSTAGE_STACK_CBMEM);
-}
-
-uintptr_t romstage_ram_stack_top(void)
-{
- uintptr_t stack_top = romstage_ram_stack_base(ROMSTAGE_RAM_STACK_SIZE,
- ROMSTAGE_STACK_CBMEM);
- stack_top += ROMSTAGE_RAM_STACK_SIZE;
-
- /* Make it aligned to a 8-byte boundary. */
- stack_top = ALIGN_DOWN(stack_top, 8);
- return stack_top;
-}