	.include	"features.inc"
	.section	.text
	.global	write
	.syntax	divided
	.type	write, %function
write:
	.ifdef	NetBSD
	swi	#10485764	@ 10485760 + write system call number
	.else
	str	r7, [sp, #-4]!	@ Preserve R7
	mov	r7, #4		@ write system call number
	swi	#0
	ldr	r7, [sp], #4	@ Restore R7
	.endif
	RET
