blob: c80f5fe1465da72d886f91b2f2b76f0e2fc1b6ee [file] [log] [blame]
Daniel Schwierzeckd8209b82016-01-09 18:34:14 +01001/*
2 * SPDX-License-Identifier: GPL-2.0+
3 */
4
5#include <common.h>
6
7DECLARE_GLOBAL_DATA_PTR;
8
9int 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}