1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Checks that registers contain what we expect, ie. they were not clobbered by
8 * r15: pattern to check registers against.
10 * At the end r3 == 0 if everything's OK.
12 nop # guaranteed to be illegal in reverse-endian
16 addi r9,r15,4 # check r4
19 lis r9,0x00FF # check CR
26 addi r9,r15,32 # check LR
30 addi r9,r15,5 # check r5
33 addi r9,r15,6 # check r6
36 addi r9,r15,7 # check r7
39 addi r9,r15,8 # check r8
42 addi r9,r15,13 # check r13
45 addi r9,r15,14 # check r14
48 addi r9,r15,16 # check r16
51 addi r9,r15,17 # check r17
54 addi r9,r15,18 # check r18
57 addi r9,r15,19 # check r19
60 addi r9,r15,20 # check r20
63 addi r9,r15,21 # check r21
66 addi r9,r15,22 # check r22
69 addi r9,r15,23 # check r23
72 addi r9,r15,24 # check r24
75 addi r9,r15,25 # check r25
78 addi r9,r15,26 # check r26
81 addi r9,r15,27 # check r27
84 addi r9,r15,28 # check r28
87 addi r9,r15,29 # check r29
90 addi r9,r15,30 # check r30
93 addi r9,r15,31 # check r31
100 2: li r0, __NR_switch_endian