Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[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 #include <log.h>
6
7 DECLARE_GLOBAL_DATA_PTR;
8
9 int arch_reserve_stacks(void)
10 {
11         /* reserve space for exception vector table */
12         gd->start_addr_sp -= 0x500;
13         gd->start_addr_sp &= ~0xFFF;
14         gd->irq_sp = gd->start_addr_sp;
15         debug("Reserving %d Bytes for exception vector at: %08lx\n",
16               0x500, gd->start_addr_sp);
17
18         return 0;
19 }