diff options
| author | christos <christos@NetBSD.org> | 2020-03-10 15:58:36 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2020-03-10 15:58:36 +0000 |
| commit | 378b2da437efadedb72b258baaef171d1c32e4bc (patch) | |
| tree | 96ec1c13d1777de1c3d7bf5247a0fa158cfe15eb /sys/ddb/db_command.c | |
| parent | 1a46699e64f850dc4129d7d70e9a9b79e42a17a0 (diff) | |
Make the db_kernelonly() macro visible to all files and re-use it.
Register access is kernel only.
Diffstat (limited to 'sys/ddb/db_command.c')
| -rw-r--r-- | sys/ddb/db_command.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index 59bcff73595..b2a21da5689 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_command.c,v 1.168 2020/03/09 01:46:24 christos Exp $ */ +/* $NetBSD: db_command.c,v 1.169 2020/03/10 15:58:36 christos Exp $ */ /* * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2009, 2019 @@ -61,7 +61,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.168 2020/03/09 01:46:24 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.169 2020/03/10 15:58:36 christos Exp $"); #ifdef _KERNEL_OPT #include "opt_aio.h" @@ -121,11 +121,6 @@ db_addr_t db_prev; db_addr_t db_next; -#ifndef _KERNEL -#define db_kernelonly() \ - db_printf("%s: can only be used in-kernel.\n", __func__) -#endif - /* * New DDB api for adding and removing commands uses three lists, because * we use two types of commands |
