summaryrefslogtreecommitdiff
path: root/src/arch/arm/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/cpu.c')
-rw-r--r--src/arch/arm/cpu.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/arch/arm/cpu.c b/src/arch/arm/cpu.c
deleted file mode 100644
index 75816d3fc0..0000000000
--- a/src/arch/arm/cpu.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/* SPDX-License-Identifier: BSD-3-Clause */
-
-#include <arch/cpu.h>
-#include <commonlib/helpers.h>
-
-/* Return the CPU struct which is at the high memory address of the stack.
- */
-struct cpu_info *cpu_info(void)
-{
-#error "This is BROKEN! ARM stacks are currently not guaranteed to be " \
- "STACK_SIZE-aligned in any way. If you ever plan to revive this " \
- "feature, make sure you add the proper assertions " \
- "(and maybe consider revising the whole thing to work closer to what " \
- "arm64 is doing now)."
- uintptr_t addr = ALIGN_UP((uintptr_t)__builtin_frame_address(0),
- CONFIG_STACK_SIZE);
- addr -= sizeof(struct cpu_info);
- return (void *)addr;
-}