Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Initialize the cn_magic goo for kgdb (bah, that s...
details: https://anonhg.NetBSD.org/src/rev/a3dacb869000
branches: trunk
changeset: 517046:a3dacb869000
user: fvdl <fvdl%NetBSD.org@localhost>
date: Mon Nov 05 21:39:24 2001 +0000
description:
Initialize the cn_magic goo for kgdb (bah, that should really not
be necessary).
diffstat:
sys/dev/ic/com.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r df578de8a12e -r a3dacb869000 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c Mon Nov 05 21:38:14 2001 +0000
+++ b/sys/dev/ic/com.c Mon Nov 05 21:39:24 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: com.c,v 1.189 2001/09/17 02:47:13 briggs Exp $ */
+/* $NetBSD: com.c,v 1.190 2001/11/05 21:39:24 fvdl Exp $ */
/*-
* Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -2453,6 +2453,13 @@
if (res)
return (res);
+ /*
+ * XXXfvdl this shouldn't be needed, but the cn_magic goo
+ * expects this to be initialized
+ */
+ cn_init_magic(&com_cnm_state);
+ cn_set_magic("\047\001");
+
kgdb_attach(com_kgdb_getc, com_kgdb_putc, NULL);
kgdb_dev = 123; /* unneeded, only to satisfy some tests */
Home |
Main Index |
Thread Index |
Old Index