blob: 5797271ae94eb31846694350d49f422f2d44391c [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
Simon Glass97589732020-05-10 11:40:02 -06003#include <init.h>
Simon Glass0f2af882020-05-10 11:40:05 -06004#include <log.h>
Simon Glass3ba929a2020-10-30 21:38:53 -06005#include <asm/global_data.h>
Daniel Schwierzeckd8209b82016-01-09 18:34:14 +01006
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}