Call KGDB hook function

This commit is contained in:
wdk 2001-02-21 09:10:42 +00:00
parent 6d8f58da18
commit 07bb8e7a23
2 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.2 2000/08/17 21:26:34 wdk Exp $ */
/* $NetBSD: cpu.h,v 1.3 2001/02/21 09:10:42 wdk Exp $ */
#ifndef _MIPSCO_CPU_H_
#define _MIPSCO_CPU_H_
@ -25,6 +25,11 @@ extern struct cpu_info cpu_info_store;
#define curcpu() (&cpu_info_store)
#define cpu_number() 0
#ifdef KGDB
void zs_kgdb_init __P((void));
#endif
#endif /* _KERNEL */
#endif /* !_LOCORE */

View File

@ -1,4 +1,4 @@
/* $NetBSD: machdep.c,v 1.15 2001/01/22 13:57:01 jdolecek Exp $ */
/* $NetBSD: machdep.c,v 1.16 2001/02/21 09:10:42 wdk Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -43,7 +43,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.15 2001/01/22 13:57:01 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.16 2001/02/21 09:10:42 wdk Exp $");
/* from: Utah Hdr: machdep.c 1.63 91/04/24 */
@ -856,4 +856,7 @@ consinit()
cn_tab = &consdev_zs;
(*cn_tab->cn_init)(cn_tab);
#ifdef KGDB
zs_kgdb_init(); /* XXX */
#endif
}