summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/stand/bugcrt
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme88k/stand/bugcrt')
-rw-r--r--sys/arch/mvme88k/stand/bugcrt/Makefile4
-rw-r--r--sys/arch/mvme88k/stand/bugcrt/crt.c6
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/arch/mvme88k/stand/bugcrt/Makefile b/sys/arch/mvme88k/stand/bugcrt/Makefile
index 581ee9ab1fd..013119fabea 100644
--- a/sys/arch/mvme88k/stand/bugcrt/Makefile
+++ b/sys/arch/mvme88k/stand/bugcrt/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.7 2001/01/13 05:19:01 smurph Exp $
+# $OpenBSD: Makefile,v 1.8 2001/02/01 03:38:22 smurph Exp $
#
# DO NOT OPTMIZE bugcrt (i.e. no "-O2")
#
@@ -22,7 +22,7 @@ stage1crt.o: crt.c
mv a.out ${.TARGET}
stage2crt.o: crt.c
- ${CC} ${CFLAGS} ${STAGE1_CFLAGS} -c ${.CURDIR}/crt.c -o ${.TARGET}
+ ${CC} ${CFLAGS} ${STAGE2_CFLAGS} -c ${.CURDIR}/crt.c -o ${.TARGET}
${LD} -x -r ${.TARGET}
mv a.out ${.TARGET}
diff --git a/sys/arch/mvme88k/stand/bugcrt/crt.c b/sys/arch/mvme88k/stand/bugcrt/crt.c
index 9b5c1debce4..7776e42b364 100644
--- a/sys/arch/mvme88k/stand/bugcrt/crt.c
+++ b/sys/arch/mvme88k/stand/bugcrt/crt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crt.c,v 1.1 2001/01/13 05:19:01 smurph Exp $ */
+/* $OpenBSD: crt.c,v 1.2 2001/02/01 03:38:23 smurph Exp $ */
#include <sys/types.h>
#include <machine/prom.h>
@@ -24,7 +24,6 @@ start()
extern int edata, end;
struct mvmeprom_brdid *id, *mvmeprom_brdid();
-#ifdef STAGE1
/*
* This code enables the SFU1 and is used for single stage
* bootstraps or the first stage of a two stage bootstrap.
@@ -33,9 +32,8 @@ start()
*/
asm("| enable SFU1");
asm(" ldcr r25,cr1");
- asm(" xor r25,r25,0x8");
+ asm(" clr r25,r25,1<3>"); /* bit 3 is SFU1D */
asm(" stcr r25,cr1");
-#endif
bugargs.dev_lun = dev_lun;
bugargs.ctrl_lun = ctrl_lun;