blob: 99fd0569051e01ca88a2a2249c74b6a182a2180c [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Daniel Schwierzeckd8209b82016-01-09 18:34:14 +01002
3#include <common.h>
4
5DECLARE_GLOBAL_DATA_PTR;
6
7int arch_reserve_stacks(void)
8{
9 /* reserve space for exception vector table */
10 gd->start_addr_sp -= 0x500;
11 gd->start_addr_sp &= ~0xFFF;
12 gd->irq_sp = gd->start_addr_sp;
13 debug("Reserving %d Bytes for exception vector at: %08lx\n",
14 0x500, gd->start_addr_sp);
15
16 return 0;
17}