19 lines
223 B
ArmAsm
19 lines
223 B
ArmAsm
|
.text
|
||
|
|
||
|
.extern c_printk
|
||
|
.global printk
|
||
|
printk:
|
||
|
push {lr}
|
||
|
|
||
|
/* disables IRQ and FIR in CPU */
|
||
|
cpsid if
|
||
|
|
||
|
/* C-Implementation */
|
||
|
bl c_printk
|
||
|
|
||
|
/* enables IRQ and FIR in CPU */
|
||
|
cpsie if
|
||
|
|
||
|
pop {pc}
|
||
|
|