xref: /aosp_15_r20/system/core/debuggerd/crasher/arm/crashglue.S (revision 00c7fec1bb09f3284aad6a6f96d2f63dfc3650ad)
1/*
2 * Copyright 2006, The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17.globl crash1
18.type crash1, %function
19crash1:
20	.cfi_startproc
21	push {lr}
22	.cfi_def_cfa_offset 4
23	.cfi_rel_offset lr, 0
24	ldr r0, =0xa5a50000
25	ldr r1, =0xa5a50001
26	ldr r2, =0xa5a50002
27	ldr r3, =0xa5a50003
28	ldr r4, =0xa5a50004
29	ldr r5, =0xa5a50005
30	ldr r6, =0xa5a50006
31	ldr r7, =0xa5a50007
32	ldr r8, =0xa5a50008
33	ldr r9, =0xa5a50009
34	ldr r10, =0xa5a50010
35	ldr r11, =0xa5a50011
36	ldr r12, =0xa5a50012
37
38	mov lr, #0
39	ldr lr, [lr]
40	b .
41	.cfi_endproc
42	.size crash1, .-crash1
43
44.globl crash_no_stack
45.type crash_no_stack, %function
46crash_no_stack:
47	.cfi_startproc
48	mov r1, sp
49	.cfi_def_cfa_register r1
50	mov sp, #0
51	mov r0, #0
52	ldr r0, [r0]
53	b .
54	.cfi_endproc
55	.size crash_no_stack, .-crash_no_stack
56