about summary refs log tree commit diff
path: root/crt/sh/crti.s
blob: d99bfd5c82dc3e1900891139c1935a9ea46a48ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.section .init
.global  _init
.type    _init, @function
_init:
	add #-4, r15
	mov.l r12, @-r15
	mov.l r14, @-r15
	sts.l pr, @-r15
	mov r15, r14
	nop

.section .fini
.global  _fini
.type    _fini, @function
_fini:
	add #-4, r15
	mov.l r12, @-r15
	mov.l r14, @-r15
	sts.l pr, @-r15
	mov r15, r14
	nop