diff options
author | Tom Rini <trini@konsulko.com> | 2016-11-30 14:08:28 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-11-30 19:31:17 -0500 |
commit | a2cb31086f68cc0db95d4373e6dbdb612954f445 (patch) | |
tree | 0da2e0ac66e184ba536d525f5007d88cea6f0372 /arch/mips/lib/stack.c | |
parent | bb417f1c9055dc17df08d1e2c9edc281ad19b648 (diff) | |
parent | 6fd596a1aa57bd431263f45b0c57ee8ae6b2403c (diff) |
Merge branch 'master' of git://git.denx.de/u-boot-mips
Diffstat (limited to 'arch/mips/lib/stack.c')
-rw-r--r-- | arch/mips/lib/stack.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/mips/lib/stack.c b/arch/mips/lib/stack.c new file mode 100644 index 00000000000..c80f5fe1465 --- /dev/null +++ b/arch/mips/lib/stack.c @@ -0,0 +1,19 @@ +/* + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> + +DECLARE_GLOBAL_DATA_PTR; + +int arch_reserve_stacks(void) +{ + /* reserve space for exception vector table */ + gd->start_addr_sp -= 0x500; + gd->start_addr_sp &= ~0xFFF; + gd->irq_sp = gd->start_addr_sp; + debug("Reserving %d Bytes for exception vector at: %08lx\n", + 0x500, gd->start_addr_sp); + + return 0; +} |