diff options
author | 2010-07-27 02:00:36 +0000 | |
---|---|---|
committer | 2010-07-27 02:00:36 +0000 | |
commit | eed0c93ba30716eed2d746d0176081a7b83b5fec (patch) | |
tree | e8195961d56ba7d80049568b904b044e7b50541a | |
parent | Add additional Notify handler for dock devices, according to ACPI spec (diff) | |
download | wireguard-openbsd-eed0c93ba30716eed2d746d0176081a7b83b5fec.tar.xz wireguard-openbsd-eed0c93ba30716eed2d746d0176081a7b83b5fec.zip |
Fix #ifdef DDB/#ifdef SMALL_KERNEL uses so all four combinations
(DDB/SMALL_KERNEL, DDB/!SMALL_KERNEL, !DDB/!SMALL_KERNEL,
!DDB/SMALL_KERNEL) can compile. A DDB bsd.rd is thus possible again.
Correction to my original diff from miod@
"If it compiles, commit" deraadt@
-rw-r--r-- | sys/dev/acpi/dsdt.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c index 7f4a319c9a1..d1de06d45a5 100644 --- a/sys/dev/acpi/dsdt.c +++ b/sys/dev/acpi/dsdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dsdt.c,v 1.173 2010/07/23 18:38:46 jordan Exp $ */ +/* $OpenBSD: dsdt.c,v 1.174 2010/07/27 02:00:36 krw Exp $ */ /* * Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org> * @@ -328,7 +328,7 @@ aml_findopcode(int opcode) return NULL; } -#ifndef SMALL_KERNEL +#if defined(DDB) || !defined(SMALL_KERNEL) const char * aml_mnem(int opcode, uint8_t *pos) { @@ -363,7 +363,7 @@ aml_mnem(int opcode, uint8_t *pos) } return ("xxx"); } -#endif /* SMALL_KERNEL */ +#endif /* defined(DDB) || !defined(SMALL_KERNEL) */ struct aml_notify_data { struct aml_node *node; @@ -2612,7 +2612,7 @@ aml_xstore(struct aml_scope *scope, struct aml_value *lhs , int64_t ival, aml_freevalue(&tmp); } -#ifndef SMALL_KERNEL +#ifdef DDB /* Disassembler routines */ void aml_disprintf(void *arg, const char *fmt, ...); @@ -2979,7 +2979,7 @@ aml_disasm(struct aml_scope *scope, int lvl, dbprintf(arg,"\n"); } } -#endif /* SMALL_KERNEL */ +#endif /* DDB */ int aml_busy; |