4d1d98c3ada3f4e95959828c90d2783f48d0007a
[oweals/u-boot.git] / arch / mips / lib / stack.c
1 // SPDX-License-Identifier: GPL-2.0+
2
3 #include <common.h>
4 #include <init.h>
5
6 DECLARE_GLOBAL_DATA_PTR;
7
8 int arch_reserve_stacks(void)
9 {
10         /* reserve space for exception vector table */
11         gd->start_addr_sp -= 0x500;
12         gd->start_addr_sp &= ~0xFFF;
13         gd->irq_sp = gd->start_addr_sp;
14         debug("Reserving %d Bytes for exception vector at: %08lx\n",
15               0x500, gd->start_addr_sp);
16
17         return 0;
18 }