diff options
author | 2000-06-25 18:45:19 +0000 | |
---|---|---|
committer | 2000-06-25 18:45:19 +0000 | |
commit | de51703d80c0ebb518b099744a7be3d619031f6f (patch) | |
tree | 83a7985c3f11f491d7e18adb8f94c94bdffc0fdc /sys/kern/subr_prf.c | |
parent | Fix typo; ds@ds.primasoft.bg (diff) | |
download | wireguard-openbsd-de51703d80c0ebb518b099744a7be3d619031f6f.tar.xz wireguard-openbsd-de51703d80c0ebb518b099744a7be3d619031f6f.zip |
disable automatic crashdump when swap encryption is on
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r-- | sys/kern/subr_prf.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c index 5bd4b69546d..666dc633815 100644 --- a/sys/kern/subr_prf.c +++ b/sys/kern/subr_prf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_prf.c,v 1.29 2000/03/13 04:05:15 millert Exp $ */ +/* $OpenBSD: subr_prf.c,v 1.30 2000/06/25 18:45:19 provos Exp $ */ /* $NetBSD: subr_prf.c,v 1.45 1997/10/24 18:14:25 chuck Exp $ */ /*- @@ -73,6 +73,9 @@ #include <ddb/db_output.h> /* db_printf, db_putchar prototypes */ extern int db_radix; /* XXX: for non-standard '%r' format */ #endif +#if defined(UVM) && defined(UVM_SWAP_ENCRYPT) +extern int uvm_doswapencrypt; +#endif /* @@ -189,6 +192,10 @@ panic(fmt, va_alist) va_list ap; bootopt = RB_AUTOBOOT | RB_DUMP; +#if defined(UVM) && defined(UVM_SWAP_ENCRYPT) + if (uvm_doswapencrypt) + bootopt &= ~RB_DUMP; +#endif va_start(ap, fmt); if (panicstr) bootopt |= RB_NOSYNC; |