* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
* @(#)srt0.c 7.3 (Berkeley) %G%
* Startup code for standalone system
* Non-relocating version -- for programs which are loaded by boot
* Relocating version for boot*
.set HIGH
,31 # mask for total disable
mtpr $HIGH
,$IPL
# just in case
* Reclear bss segment separately from text and data
* since movc3 can't move more than 64K bytes
/* this loop shouldn't be necessary, but is when booting from an ra81 */
aedata
: .long _edata
-RELOC
1: bbc $
1,r4
,1f
; tstw (r3
)
1: bbc $
2,r4
,1f
; tstl (r3
)
1: clrl r0
# made it w/o machine checks
addl2 (sp
)+,sp
# discard mchchk trash