diff --git a/sys/arch/x86/x86/bus_space.c b/sys/arch/x86/x86/bus_space.c index f06321b..cfc49fd 100644 --- a/sys/arch/x86/x86/bus_space.c +++ b/sys/arch/x86/x86/bus_space.c @@ -153,6 +153,8 @@ x86_bus_space_mallocok(void) ioport_malloc_safe = 1; } +#include + int bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, int flags, bus_space_handle_t *bshp) @@ -161,6 +163,12 @@ bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, bus_space_tag_t it; int error; + if (bpa <= 0xc0000 && 0xc0000 - bpa < size) { + printf("%s: mapping vga rom\n", __func__); + db_stack_trace_print((db_expr_t)(intptr_t) + __builtin_frame_address(0), true, 65536, "", printf); + } + if ((t->bst_exists & BUS_SPACE_OVERRIDE_MAP) == 0) ; /* skip override */ else for (it = t; it != NULL; it = it->bst_super) { diff --git a/sys/external/bsd/drm2/dist/drm/drm_stub.c b/sys/external/bsd/drm2/dist/drm/drm_stub.c index 550a653..767751e 100644 --- a/sys/external/bsd/drm2/dist/drm/drm_stub.c +++ b/sys/external/bsd/drm2/dist/drm/drm_stub.c @@ -42,7 +42,7 @@ #include #include -unsigned int drm_debug = 0; /* 1 to enable debug output */ +unsigned int drm_debug = 4; /* 1 to enable debug output */ EXPORT_SYMBOL(drm_debug); unsigned int drm_rnodes = 0; /* 1 to enable experimental render nodes API */