Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make a branch that works with the 1.0 code base.

  • Loading branch information...
commit 69371fcde1ba52d273cecebc107216e3bdf220df 1 parent 426735a
authored November 30, 1994
6  sys/arch/sun3/conf/files.sun3.newconf
... ...
@@ -1,4 +1,4 @@
1  
-#	$NetBSD: files.sun3.newconf,v 1.16 1994/11/21 21:26:50 gwr Exp $
  1
+#	$NetBSD: files.sun3.newconf,v 1.16.2.1 1994/11/30 23:07:08 gwr Exp $
2 2
 
3 3
 #
4 4
 # sun3-specific configuration info
@@ -101,7 +101,9 @@ file arch/sun3/sun3/trap.c
101 101
 file arch/sun3/sun3/vector.c		
102 102
 file arch/sun3/sun3/vm_machdep.c	
103 103
 
104  
-file arch/sun3/sun3/db_memrw.c		ddb
  104
+# You can uncomment this if you "#ifdef" out the
  105
+# functions it replaces in m68k/db_interface.c
  106
+# file arch/sun3/sun3/db_memrw.c		ddb
105 107
 
106 108
 file	compat/sunos/sun_exec.c		compat_sunos
107 109
 file	compat/sunos/sun_ioctl.c	compat_sunos
13  sys/arch/sun3/sun3/sun3_startup.c
... ...
@@ -1,4 +1,4 @@
1  
-/*	$NetBSD: sun3_startup.c,v 1.27 1994/11/21 21:39:09 gwr Exp $	*/
  1
+/*	$NetBSD: sun3_startup.c,v 1.27.2.1 1994/11/30 22:50:39 gwr Exp $	*/
2 2
 
3 3
 /*
4 4
  * Copyright (c) 1994 Gordon W. Ross
@@ -505,8 +505,19 @@ void sun3_vm_init()
505 505
 			mon_printf("invalid page at 0x%x\n", va);
506 506
 		}
507 507
 		pte &= ~(PG_WRITE|PG_NC);
  508
+#ifdef	DDB
  509
+		/*
  510
+		 * Leave text writable for ddb.
  511
+		 * Actually, if you use db_memrw.c and
  512
+		 * comment out the replaced functions in
  513
+		 * m68k/db_interface.c then you can make
  514
+		 * kernel text read-only even with ddb.
  515
+		 */
  516
+		pte |= (PG_WRITE|PG_SYSTEM);
  517
+#else
508 518
 		/* Kernel text is read-only */
509 519
 		pte |= (PG_SYSTEM);
  520
+#endif
510 521
 		set_pte(va, pte);
511 522
 		va += NBPG;
512 523
 	}

0 notes on commit 69371fc

Please sign in to comment.
Something went wrong with that request. Please try again.