1 // SPDX-License-Identifier: GPL-2.0+
2 
3 #include <common.h>
4 #include <init.h>
5 #include <log.h>
6 #include <asm/global_data.h>
7 
8 DECLARE_GLOBAL_DATA_PTR;
9 
arch_reserve_stacks(void)10 int 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 }
21