From c70de0b625286405bb73327296853b6808c10329 Mon Sep 17 00:00:00 2001 From: gwr Date: Mon, 10 Feb 1997 23:36:09 +0000 Subject: [PATCH] Actually works now. --- sys/arch/sun3/conf/GENERIC_KGDB | 29 +++++++++++++++++++++-------- sys/arch/sun3/conf/KGDB | 29 +++++++++++++++++++++-------- 2 files changed, 42 insertions(+), 16 deletions(-) diff --git a/sys/arch/sun3/conf/GENERIC_KGDB b/sys/arch/sun3/conf/GENERIC_KGDB index 5a63bd2562c5..0b76b6b27ca9 100644 --- a/sys/arch/sun3/conf/GENERIC_KGDB +++ b/sys/arch/sun3/conf/GENERIC_KGDB @@ -1,8 +1,11 @@ -# $NetBSD: GENERIC_KGDB,v 1.8 1997/01/31 02:08:23 thorpej Exp $ +# $NetBSD: GENERIC_KGDB,v 1.9 1997/02/10 23:36:09 gwr Exp $ # # GENERIC_KGDB Sun3 (3/50, 3/60, 3/110, 3/160, 3/260) -# like GENERIC but supports KGDB (gdb -k on other machine) +# like GENERIC but supports gdb on other machine, i.e.: +# % gdb -k netbsd.gdb +# (gdb) set remotebaud 19200 +# (gdb) target remote /dev/ttyb # include "arch/sun3/conf/std.sun3" @@ -19,9 +22,10 @@ options KTRACE # system call tracing support # Debugging options. Uncomment either this: #options DDB -# ... or these two: (for KGDB on another machine) -makeoptions DEBUG="-g" # symbols for kgdb + nm +# ... or these for KGDB (gdb remote target) +makeoptions DEBUG="-g" # debugging symbols for gdb options KGDB +options KGDBDEV=0x0C01 # Filesystem options file-system FFS # ufs file system @@ -59,7 +63,6 @@ options PMAP_DEBUG #options EXEC_DEBUG options DIAGNOSTIC #options SCSIDEBUG -options NCR5380_DEBUG config netbsd root on ? type ? @@ -77,18 +80,28 @@ ms0 at zsc0 channel 1 # mouse # # Intel Ethernet (onboard, or VME) -ie0 at obio0 addr ? level ? +ie0 at obio0 addr 0x0C0000 level 3 ie1 at vmes0 addr 0xffe88000 level 3 vect 0x75 # Lance Ethernet (only onboard) -le0 at obio0 addr ? level ? +le0 at obio0 addr 0x120000 level 3 # # Disk and tape devices # # Sun3 "si" SCSI controller (NCR 5380) -si0 at obio0 addr ? level ? +# This driver has several flags which may be enabled by OR'ing +# the values and using the "flags" directive. (PR#1929) +# Valid flags are: +# +# 0x01 Use DMA (may be polled) +# 0x02 Use DMA completion interrupts +# 0x04 Allow disconnect/reselect +# +# E.g. "flags 0x07" would enable DMA, interrupts, and reselect. +# Note: these values are quite a bit paranoid... +si0 at obio0 addr 0x140000 level 2 si0 at vmes0 addr 0xff200000 level 2 vect 0x40 si1 at vmes0 addr 0xff204000 level 2 vect 0x41 diff --git a/sys/arch/sun3/conf/KGDB b/sys/arch/sun3/conf/KGDB index 4a40a8aded67..071334c4bf0e 100644 --- a/sys/arch/sun3/conf/KGDB +++ b/sys/arch/sun3/conf/KGDB @@ -1,8 +1,11 @@ -# $NetBSD: KGDB,v 1.8 1997/01/31 02:08:23 thorpej Exp $ +# $NetBSD: KGDB,v 1.9 1997/02/10 23:36:09 gwr Exp $ # # GENERIC_KGDB Sun3 (3/50, 3/60, 3/110, 3/160, 3/260) -# like GENERIC but supports KGDB (gdb -k on other machine) +# like GENERIC but supports gdb on other machine, i.e.: +# % gdb -k netbsd.gdb +# (gdb) set remotebaud 19200 +# (gdb) target remote /dev/ttyb # include "arch/sun3/conf/std.sun3" @@ -19,9 +22,10 @@ options KTRACE # system call tracing support # Debugging options. Uncomment either this: #options DDB -# ... or these two: (for KGDB on another machine) -makeoptions DEBUG="-g" # symbols for kgdb + nm +# ... or these for KGDB (gdb remote target) +makeoptions DEBUG="-g" # debugging symbols for gdb options KGDB +options KGDBDEV=0x0C01 # Filesystem options file-system FFS # ufs file system @@ -59,7 +63,6 @@ options PMAP_DEBUG #options EXEC_DEBUG options DIAGNOSTIC #options SCSIDEBUG -options NCR5380_DEBUG config netbsd root on ? type ? @@ -77,18 +80,28 @@ ms0 at zsc0 channel 1 # mouse # # Intel Ethernet (onboard, or VME) -ie0 at obio0 addr ? level ? +ie0 at obio0 addr 0x0C0000 level 3 ie1 at vmes0 addr 0xffe88000 level 3 vect 0x75 # Lance Ethernet (only onboard) -le0 at obio0 addr ? level ? +le0 at obio0 addr 0x120000 level 3 # # Disk and tape devices # # Sun3 "si" SCSI controller (NCR 5380) -si0 at obio0 addr ? level ? +# This driver has several flags which may be enabled by OR'ing +# the values and using the "flags" directive. (PR#1929) +# Valid flags are: +# +# 0x01 Use DMA (may be polled) +# 0x02 Use DMA completion interrupts +# 0x04 Allow disconnect/reselect +# +# E.g. "flags 0x07" would enable DMA, interrupts, and reselect. +# Note: these values are quite a bit paranoid... +si0 at obio0 addr 0x140000 level 2 si0 at vmes0 addr 0xff200000 level 2 vect 0x40 si1 at vmes0 addr 0xff204000 level 2 vect 0x41