Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Daniel Schwierzeck | d8209b8 | 2016-01-09 18:34:14 +0100 | [diff] [blame] | 2 | |
| 3 | #include <common.h> |
Simon Glass | 9758973 | 2020-05-10 11:40:02 -0600 | [diff] [blame] | 4 | #include <init.h> |
Simon Glass | 0f2af88 | 2020-05-10 11:40:05 -0600 | [diff] [blame] | 5 | #include <log.h> |
Simon Glass | 3ba929a | 2020-10-30 21:38:53 -0600 | [diff] [blame] | 6 | #include <asm/global_data.h> |
Daniel Schwierzeck | d8209b8 | 2016-01-09 18:34:14 +0100 | [diff] [blame] | 7 | |
| 8 | DECLARE_GLOBAL_DATA_PTR; |
| 9 | |
| 10 | int arch_reserve_stacks(void) |
| 11 | { |
| 12 | /* reserve space for exception vector table */ |
| 13 | gd->start_addr_sp -= 0x500; |
| 14 | gd->start_addr_sp &= ~0xFFF; |
| 15 | gd->irq_sp = gd->start_addr_sp; |
| 16 | debug("Reserving %d Bytes for exception vector at: %08lx\n", |
| 17 | 0x500, gd->start_addr_sp); |
| 18 | |
| 19 | return 0; |
| 20 | } |