diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-07-19 14:34:11 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-07-19 14:34:11 +0000 |
commit | 5bfa92540d5e3d2a68895b4f754be2625844d96c (patch) | |
tree | 69b5ccea2823af33ded2581c5d74aef91202d3b7 /sys/dev/wscons/wsdisplayvar.h | |
parent | a3b66c601bf82fd0a8ad2bf8322510aff0e9e972 (diff) |
Add a enter_ddb() "accessop" to wsdisplay(4) to allow KMS drivers to bypass
the modeset lock when entering ddb. This avoids triggering various asserts
when the kernel panics while running X.
ok deraadt@
Diffstat (limited to 'sys/dev/wscons/wsdisplayvar.h')
-rw-r--r-- | sys/dev/wscons/wsdisplayvar.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/wscons/wsdisplayvar.h b/sys/dev/wscons/wsdisplayvar.h index 9e20834d751..995d09200ea 100644 --- a/sys/dev/wscons/wsdisplayvar.h +++ b/sys/dev/wscons/wsdisplayvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: wsdisplayvar.h,v 1.30 2016/09/04 18:20:34 tedu Exp $ */ +/* $OpenBSD: wsdisplayvar.h,v 1.31 2017/07/19 14:34:10 kettenis Exp $ */ /* $NetBSD: wsdisplayvar.h,v 1.30 2005/02/04 02:10:49 perry Exp $ */ /* @@ -145,6 +145,7 @@ struct wsdisplay_accessops { int (*getchar)(void *, int, int, struct wsdisplay_charcell *); void (*burn_screen)(void *, u_int, u_int); void (*pollc)(void *, int); + void (*enter_ddb)(void *, void *); }; /* passed to wscons by the video driver to tell about its capabilities */ @@ -229,6 +230,7 @@ int wsdisplay_cfg_ioctl(struct wsdisplay_softc *sc, */ #define WSDISPLAY_NULLSCREEN -1 void wsdisplay_switchtoconsole(void); +void wsdisplay_enter_ddb(void); void wsdisplay_suspend(void); void wsdisplay_resume(void); const struct wsscreen_descr * |