File:  [CSRG BSD Unix] / 3BSD / sys / stand / tpsrt0.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, CSRG
CVS tags: HEAD, BSD3
BSD 3.0

# Startup code for standalone system
# Non-relocating version -- for programs which are loaded by boot

	.globl	_end
	.globl	_main
	.globl	__rtt
	.globl	_edata

	.set	PHYSUBA,0x20006000	# uba 0
	.set	PHYSMBA0,0x20010000	# mba 0
	.set	PHYSMBA1,0x20012000	# mba 1
	.set	PHYSUMEM,0x2013e000	# unibus memory

	.set	HIGH,31		# mask for total disable

	.word	0x0
	mtpr	$HIGH,$IPL		# just in case
	movl	$1,PHYSMBA0+4		# init
	movl	$1,PHYSMBA1+4		# init
	movl	$1,PHYSUBA+4		# init
	subl3	$_edata,$RELOC-0x2000,r0
	movc5	$0,(sp),$0,r0,_edata
start:
	movl	$RELOC-0x2000,sp
	calls	$0,_main
	ret

__rtt:
	.word	0x0
	jmp	start

unix.superglobalmegacorp.com

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