summaryrefslogtreecommitdiffstats
path: root/sys/gdb
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2010-09-30 17:05:23 +0000
committeravg <avg@FreeBSD.org>2010-09-30 17:05:23 +0000
commiteca696eeba3626081774117ce5b9d924281c15e2 (patch)
tree75affb3e2ec0dd8c1da7f724afb6bcd53ff06d3d /sys/gdb
parent1f20beb47f6f8b94b4b99fe9718b2c311e8f9155 (diff)
downloadFreeBSD-src-eca696eeba3626081774117ce5b9d924281c15e2.zip
FreeBSD-src-eca696eeba3626081774117ce5b9d924281c15e2.tar.gz
there must be only one SYSINIT with SI_SUB_RUN_SCHEDULER+SI_ORDER_ANY order
SI_SUB_RUN_SCHEDULER+SI_ORDER_ANY should only be used to call scheduler() function which turns the initial thread into swapper proper and thus there is no further SYSINIT processing. Other SYSINITs with SI_SUB_RUN_SCHEDULER+SI_ORDER_ANY may get ordered after scheduler() and thus never executed. That particular relative order is semi-arbitrary. Thus, change such places to use SI_ORDER_MIDDLE. Also, use SI_ORDER_MIDDLE instead of correct, but less appealing, SI_ORDER_ANY - 1. MFC after: 1 week
Diffstat (limited to 'sys/gdb')
-rw-r--r--sys/gdb/gdb_cons.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/gdb/gdb_cons.c b/sys/gdb/gdb_cons.c
index 1c7bdea..2e01cd4 100644
--- a/sys/gdb/gdb_cons.c
+++ b/sys/gdb/gdb_cons.c
@@ -126,7 +126,7 @@ oktousecallout(void *data __unused)
{
calloutok = 1;
}
-SYSINIT(gdbhack, SI_SUB_RUN_SCHEDULER, SI_ORDER_ANY, oktousecallout, NULL);
+SYSINIT(gdbhack, SI_SUB_RUN_SCHEDULER, SI_ORDER_MIDDLE, oktousecallout, NULL);
static void
gdb_cnputc(struct consdev *cp, int c)
OpenPOWER on IntegriCloud