diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-07-23 16:56:53 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-07-23 16:56:53 +0000 |
commit | 91632b5c082f7fd974d5e1bea22cd9b64399dce2 (patch) | |
tree | aa0992a12aa34c494e6031cba65310849dff55d7 | |
parent | 4a9e1b6d5a916fa3f1cacc630e3ed438d7c31374 (diff) |
only break in ddb if the kernel has been mapped
-rw-r--r-- | sys/arch/hppa/hppa/db_interface.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/db_interface.c b/sys/arch/hppa/hppa/db_interface.c index cb5d279b641..62af6065233 100644 --- a/sys/arch/hppa/hppa/db_interface.c +++ b/sys/arch/hppa/hppa/db_interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_interface.c,v 1.21 2002/05/18 09:49:17 art Exp $ */ +/* $OpenBSD: db_interface.c,v 1.22 2002/07/23 16:56:52 mickey Exp $ */ /* * Copyright (c) 1999-2000 Michael Shalayeff @@ -132,8 +132,10 @@ int db_active = 0; void Debugger() { - __asm __volatile ("break %0, %1" - :: "i" (HPPA_BREAK_KERNEL), "i" (HPPA_BREAK_KGDB)); + extern int kernelmapped; /* from locore.S */ + if (kernelmapped) + __asm __volatile ("break %0, %1" + :: "i" (HPPA_BREAK_KERNEL), "i" (HPPA_BREAK_KGDB)); } void |