Lines Matching +full:sw +full:- +full:exception
6 * Yasushi SHOJI <yashi@atmark-techno.com>
8 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm-offsets.h>
32 addi r1, r1, -4 /* Decrement SP to top of memory */
35 addi r1, r0, CONFIG_SYS_INIT_SP_OFFSET - CONFIG_VAL(SYS_MALLOC_F_LEN)
40 addi r1, r1, -4 /* Decrement SP to top of memory */
42 /* Find-out if u-boot is running on BIG/LITTLE endian platform
47 * 4a) LITTLE endian - r10 contains 0x2 because it is the smallest
49 * 4b) BIG endian - r10 contains 0x0 because 0x2 offset is on addr 0x3
57 /* add opcode instruction for 32bit jump - 2 instruction imm & brai */
63 swi r2, r0, 0x0 /* reset address - imm opcode */
64 swi r3, r0, 0x4 /* reset address - brai opcode */
67 sw r6, r1, r0
77 swi r2, r0, 0x8 /* user vector exception - imm opcode */
78 swi r3, r0, 0xC /* user vector exception - brai opcode */
81 sw r6, r1, r0
83 * BIG ENDIAN memory map for user exception
93 * LITTLE ENDIAN memory map for user exception
110 swi r2, r0, 0x10 /* interrupt - imm opcode */
111 swi r3, r0, 0x14 /* interrupt - brai opcode */
114 sw r6, r1, r0
121 /* hardware exception */
122 swi r2, r0, 0x20 /* hardware exception - imm opcode */
123 swi r3, r0, 0x24 /* hardware exception - brai opcode */
126 sw r6, r1, r0
163 or r5, r0, r0 /* flags - empty */
204 * first parameter(r5) - address, second(r6) - short value
220 * Relocate u-boot
228 * r5 - start_addr_sp
229 * r6 - new_gd
230 * r7 - reloc_addr
236 /* Relocate text and data - r12 temp value */
238 addi r22, r0, __end - 4 /* Include BSS too */
242 1: lw r12, r21, r5 /* Load u-boot data */
243 sw r12, r23, r5 /* Write zero to loc */
246 addi r5, r5, 4 /* Increment to next loc - relocate code */
251 rsub r23, r24, r23 /* keep - this is already here gd->reloc_off */
262 sw r6, r1, r0
271 sw r6, r1, r0
280 sw r6, r1, r0
291 beqi r12, 2f /* No GOT table - jump over */
294 addik r22, r22, -0x10
299 sw r12, r21, r0 /* Save entry back */