File:  [CSRG BSD Unix] / 41BSD / libc / sys / mcount.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:53 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD41
BSD 4.1

# count subroutine called during profiling

.globl	mcount
.comm	countbase,4

mcount:
	movl	(r0),r1
	beql	init
incr:
	incl	(r1)
return:
	rsb
init:
	movl	countbase,r1
	beql	return
	addl2	$8,countbase
	movl	(sp),(r1)+
	movl	r1,(r0)
	brb 	incr

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.