Lines Matching +full:global +full:- +full:reset

2  * (C) Copyright 2008 - 2013 Tensilica Inc.
3 * (C) Copyright 2014 - 2016 Cadence Design Systems Inc.
5 * SPDX-License-Identifier: GPL-2.0+
13 #include <asm-offsets.h>
50 * Reset vector.
57 .global _ResetVector
73 * that DDR has been set up before running U-Boot. (See also comments
77 .section .reset.text, "ax"
78 .global _start
105 /* Reset windowbase and windowstart */
121 movi a3, XCHAL_VECBASE_RESET_VADDR /* VECBASE reset value */
229 movi sp, (CONFIG_SYS_TEXT_ADDR - 16) & 0xfffffff0
312 /* Reserve 16-byte save area */
313 addi sp, a2, -16
327 * - We currently don't use the user exception vector (PS.UM is always 0),
330 * - We currently only save the bare minimum number of registers:
331 * a0...a15, sar, loop-registers, exception register (epc1, excvaddr,
333 * - WINDOWSTART is only saved to identify if registers have been spilled
339 .global _KernelExceptionVector
347 .global _UserExceptionVector
356 .global _DoubleExceptionVector
361 movi a0, hang # report and ask user to reset board
365 movi a4, hang # report and ask user to reset board
383 addi a1, a1, -16 - 4 # create a small stack frame
392 1: addi a2, a1, - PT_SIZE - 16
491 addi a3, a2, -1
496 addi a3, a2, -1
500 addi a2, a1, -16
540 * handlers underflow-4 to underflow-12, then the overflow handlers
541 * overflow-4 to overflow-12.
549 /* 4-Register Window Overflow Vector (Handler) */
552 .global _WindowOverflow4
554 s32e a0, a5, -16
555 s32e a1, a5, -12
556 s32e a2, a5, -8
557 s32e a3, a5, -4
561 /* 4-Register Window Underflow Vector (Handler) */
564 .global _WindowUnderflow4
566 l32e a0, a5, -16
567 l32e a1, a5, -12
568 l32e a2, a5, -8
569 l32e a3, a5, -4
574 * a1: new stack pointer = a1 - 16 - 4
596 /* 49*/ rotw -1
598 /* 55*/ rotw -1
603 /* 8-Register Window Overflow Vector (Handler) */
606 .global _WindowOverflow8
608 s32e a0, a9, -16
609 l32e a0, a1, -12
610 s32e a2, a9, -8
611 s32e a1, a9, -12
612 s32e a3, a9, -4
613 s32e a4, a0, -32
614 s32e a5, a0, -28
615 s32e a6, a0, -24
616 s32e a7, a0, -20
619 /* 8-Register Window Underflow Vector (Handler) */
622 .global _WindowUnderflow8
624 l32e a1, a9, -12
625 l32e a0, a9, -16
626 l32e a7, a1, -12
627 l32e a2, a9, -8
628 l32e a4, a7, -32
629 l32e a3, a9, -4
630 l32e a5, a7, -28
631 l32e a6, a7, -24
632 l32e a7, a7, -20
635 /* 12-Register Window Overflow Vector (Handler) */
638 .global _WindowOverflow12
640 s32e a0, a13, -16
641 l32e a0, a1, -12
642 s32e a1, a13, -12
643 s32e a2, a13, -8
644 s32e a3, a13, -4
645 s32e a4, a0, -48
646 s32e a5, a0, -44
647 s32e a6, a0, -40
648 s32e a7, a0, -36
649 s32e a8, a0, -32
650 s32e a9, a0, -28
651 s32e a10, a0, -24
652 s32e a11, a0, -20
655 /* 12-Register Window Underflow Vector (Handler) */
657 .org _WindowOverflow12 + 64 - 3
659 rotw -1
660 .global _WindowUnderflow12
662 l32e a1, a13, -12
663 l32e a0, a13, -16
664 l32e a11, a1, -12
665 l32e a2, a13, -8
666 l32e a4, a11, -48
667 l32e a8, a11, -32
668 l32e a3, a13, -4
669 l32e a5, a11, -44
670 l32e a6, a11, -40
671 l32e a7, a11, -36
672 l32e a9, a11, -28
673 l32e a10, a11, -24
674 l32e a11, a11, -20