diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index e785546bc08..6baeebe1989 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -2250,6 +2250,12 @@ init386(first) isa_defaultirq(); #endif + /* + * Giant is used early for at least debugger traps, unexpected traps, + * and vm86bios initialization. + */ + mtx_init(&Giant, "Giant", MTX_DEF); + #ifdef DDB kdb_init(); if (boothowto & RB_KDB) @@ -2284,12 +2290,6 @@ init386(first) dblfault_tss.tss_cs = GSEL(GCODE_SEL, SEL_KPL); dblfault_tss.tss_ldt = GSEL(GLDT_SEL, SEL_KPL); - /* - * We grab Giant during the vm86bios routines, so we need to ensure - * that it is up and running before we use vm86. - */ - mtx_init(&Giant, "Giant", MTX_DEF); - vm86_initialize(); getmemsize(first); diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index e785546bc08..6baeebe1989 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -2250,6 +2250,12 @@ init386(first) isa_defaultirq(); #endif + /* + * Giant is used early for at least debugger traps, unexpected traps, + * and vm86bios initialization. + */ + mtx_init(&Giant, "Giant", MTX_DEF); + #ifdef DDB kdb_init(); if (boothowto & RB_KDB) @@ -2284,12 +2290,6 @@ init386(first) dblfault_tss.tss_cs = GSEL(GCODE_SEL, SEL_KPL); dblfault_tss.tss_ldt = GSEL(GLDT_SEL, SEL_KPL); - /* - * We grab Giant during the vm86bios routines, so we need to ensure - * that it is up and running before we use vm86. - */ - mtx_init(&Giant, "Giant", MTX_DEF); - vm86_initialize(); getmemsize(first);