Merged from sys/i386/i386/machdep.c revision 1.408.
This commit is contained in:
parent
829e892a2e
commit
0fcfd857e2
@ -2250,6 +2250,12 @@ init386(first)
|
|||||||
isa_defaultirq();
|
isa_defaultirq();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Giant is used early for at least debugger traps, unexpected traps,
|
||||||
|
* and vm86bios initialization.
|
||||||
|
*/
|
||||||
|
mtx_init(&Giant, "Giant", MTX_DEF);
|
||||||
|
|
||||||
#ifdef DDB
|
#ifdef DDB
|
||||||
kdb_init();
|
kdb_init();
|
||||||
if (boothowto & RB_KDB)
|
if (boothowto & RB_KDB)
|
||||||
@ -2284,12 +2290,6 @@ init386(first)
|
|||||||
dblfault_tss.tss_cs = GSEL(GCODE_SEL, SEL_KPL);
|
dblfault_tss.tss_cs = GSEL(GCODE_SEL, SEL_KPL);
|
||||||
dblfault_tss.tss_ldt = GSEL(GLDT_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();
|
vm86_initialize();
|
||||||
getmemsize(first);
|
getmemsize(first);
|
||||||
|
|
||||||
|
@ -2250,6 +2250,12 @@ init386(first)
|
|||||||
isa_defaultirq();
|
isa_defaultirq();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Giant is used early for at least debugger traps, unexpected traps,
|
||||||
|
* and vm86bios initialization.
|
||||||
|
*/
|
||||||
|
mtx_init(&Giant, "Giant", MTX_DEF);
|
||||||
|
|
||||||
#ifdef DDB
|
#ifdef DDB
|
||||||
kdb_init();
|
kdb_init();
|
||||||
if (boothowto & RB_KDB)
|
if (boothowto & RB_KDB)
|
||||||
@ -2284,12 +2290,6 @@ init386(first)
|
|||||||
dblfault_tss.tss_cs = GSEL(GCODE_SEL, SEL_KPL);
|
dblfault_tss.tss_cs = GSEL(GCODE_SEL, SEL_KPL);
|
||||||
dblfault_tss.tss_ldt = GSEL(GLDT_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();
|
vm86_initialize();
|
||||||
getmemsize(first);
|
getmemsize(first);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user