Module Name:    src
Committed By:   tsutsui
Date:           Mon Jan 10 16:43:30 UTC 2011

Modified Files:
        src/sys/arch/pmax/stand/common: bootinit.S bootread.S clear_cache.S
            getchar.S printf.S

Log Message:
Add hazard nops required by MIPS1 in noreorder case.
(Umm, is it easier to remove noreorder and all BDslot insns?)


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/pmax/stand/common/bootinit.S \
    src/sys/arch/pmax/stand/common/bootread.S
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/pmax/stand/common/clear_cache.S \
    src/sys/arch/pmax/stand/common/printf.S
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/pmax/stand/common/getchar.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/pmax/stand/common/bootinit.S
diff -u src/sys/arch/pmax/stand/common/bootinit.S:1.6 src/sys/arch/pmax/stand/common/bootinit.S:1.7
--- src/sys/arch/pmax/stand/common/bootinit.S:1.6	Mon Jan 10 15:25:15 2011
+++ src/sys/arch/pmax/stand/common/bootinit.S	Mon Jan 10 16:43:29 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bootinit.S,v 1.6 2011/01/10 15:25:15 tsutsui Exp $	*/
+/*	$NetBSD: bootinit.S,v 1.7 2011/01/10 16:43:29 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,6 +36,7 @@
 	.set	noreorder
 LEAF(bootinit)
 	lw	v0, _C_LABEL(callv)	# get pointer to call back vectors
+	nop
 	lw	v0, 0x54(v0)	# offset for callv->_bootinit
 	nop
 	j	v0		# call PROM bootinit
Index: src/sys/arch/pmax/stand/common/bootread.S
diff -u src/sys/arch/pmax/stand/common/bootread.S:1.6 src/sys/arch/pmax/stand/common/bootread.S:1.7
--- src/sys/arch/pmax/stand/common/bootread.S:1.6	Mon Jan 10 15:25:15 2011
+++ src/sys/arch/pmax/stand/common/bootread.S	Mon Jan 10 16:43:29 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: bootread.S,v 1.6 2011/01/10 15:25:15 tsutsui Exp $	*/
+/*	$NetBSD: bootread.S,v 1.7 2011/01/10 16:43:29 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,6 +36,7 @@
 	.set	noreorder
 LEAF(bootread)
 	lw	v0, _C_LABEL(callv)	# get pointer to call back vectors
+	nop
 	lw	v0, 0x58(v0)	# offset for callv->_bootread
 	nop
 	j	v0		# call PROM bootread

Index: src/sys/arch/pmax/stand/common/clear_cache.S
diff -u src/sys/arch/pmax/stand/common/clear_cache.S:1.7 src/sys/arch/pmax/stand/common/clear_cache.S:1.8
--- src/sys/arch/pmax/stand/common/clear_cache.S:1.7	Mon Jan 10 15:25:15 2011
+++ src/sys/arch/pmax/stand/common/clear_cache.S	Mon Jan 10 16:43:29 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: clear_cache.S,v 1.7 2011/01/10 15:25:15 tsutsui Exp $	*/
+/*	$NetBSD: clear_cache.S,v 1.8 2011/01/10 16:43:29 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,6 +36,7 @@
 	.set	noreorder
 LEAF(clear_cache)
 	lw	v0, _C_LABEL(callv)	# get pointer to call back vectors
+	nop
 	lw	v0, 0x7c(v0)	# offset for callv->_clear_cache
 	nop
 	j	v0		# call PROM clear_cache
Index: src/sys/arch/pmax/stand/common/printf.S
diff -u src/sys/arch/pmax/stand/common/printf.S:1.7 src/sys/arch/pmax/stand/common/printf.S:1.8
--- src/sys/arch/pmax/stand/common/printf.S:1.7	Mon Jan 10 15:25:15 2011
+++ src/sys/arch/pmax/stand/common/printf.S	Mon Jan 10 16:43:29 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: printf.S,v 1.7 2011/01/10 15:25:15 tsutsui Exp $	*/
+/*	$NetBSD: printf.S,v 1.8 2011/01/10 16:43:29 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,6 +36,7 @@
 	.set	noreorder
 LEAF(printf)
 	lw	v0, _C_LABEL(callv)	# get pointer to call back vectors
+	nop
 	lw	t9, 0x30(v0)	# offset for callv->_printf
 	nop
 #ifdef __mips_n32

Index: src/sys/arch/pmax/stand/common/getchar.S
diff -u src/sys/arch/pmax/stand/common/getchar.S:1.3 src/sys/arch/pmax/stand/common/getchar.S:1.4
--- src/sys/arch/pmax/stand/common/getchar.S:1.3	Mon Jan 10 15:25:15 2011
+++ src/sys/arch/pmax/stand/common/getchar.S	Mon Jan 10 16:43:29 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: getchar.S,v 1.3 2011/01/10 15:25:15 tsutsui Exp $	*/
+/*	$NetBSD: getchar.S,v 1.4 2011/01/10 16:43:29 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -36,6 +36,7 @@
 	.set	noreorder
 LEAF(getchar)
 	lw	v0, _C_LABEL(callv)	# get pointer to call back vectors
+	nop
 	lw	v0, 0x24(v0)	# offset for callv->_getchar
 	nop
 	j	v0		# call PROM getchar

Reply via email to