blob: 930d21856d9073596f976295a627a5fac93470ea [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Daniel Schwierzeckbd602522016-01-09 18:34:14 +01002
3#include <common.h>
Simon Glass691d7192020-05-10 11:40:02 -06004#include <init.h>
Simon Glassf7ae49f2020-05-10 11:40:05 -06005#include <log.h>
Simon Glass401d1c42020-10-30 21:38:53 -06006#include <asm/global_data.h>
Daniel Schwierzeckbd602522016-01-09 18:34:14 +01007
8DECLARE_GLOBAL_DATA_PTR;
9
10int arch_reserve_stacks(void)
11{
12 /* reserve space for exception vector table */
13 gd->start_addr_sp -= 0x500;
14 gd->start_addr_sp &= ~0xFFF;
15 gd->irq_sp = gd->start_addr_sp;
16 debug("Reserving %d Bytes for exception vector at: %08lx\n",
17 0x500, gd->start_addr_sp);
18
19 return 0;
20}