stkarm/src/dbg.s

19 lines
223 B
ArmAsm
Raw Normal View History

2018-12-28 10:30:39 +00:00
.text
.extern c_printk
.global printk
printk:
push {lr}
2018-12-30 22:07:00 +00:00
/* disables IRQ and FIQ in CPU */
2018-12-28 10:30:39 +00:00
cpsid if
/* C-Implementation */
bl c_printk
2018-12-30 22:07:00 +00:00
/* enables IRQ and FIQ in CPU */
2018-12-28 10:30:39 +00:00
cpsie if
pop {pc}