Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/i386/machdep.c
Show First 20 Lines • Show All 2,344 Lines • ▼ Show 20 Lines | init386(int first) | ||||
} | } | ||||
identify_hypervisor(); | identify_hypervisor(); | ||||
/* Init basic tunables, hz etc */ | /* Init basic tunables, hz etc */ | ||||
init_param1(); | init_param1(); | ||||
/* Set bootmethod to BIOS: it's the only supported on i386. */ | /* Set bootmethod to BIOS: it's the only supported on i386. */ | ||||
strlcpy(bootmethod, "BIOS", sizeof(bootmethod)); | firmware_type = FW_BIOS; | ||||
/* | /* | ||||
* Make gdt memory segments. All segments cover the full 4GB | * Make gdt memory segments. All segments cover the full 4GB | ||||
* of address space and permissions are enforced at page level. | * of address space and permissions are enforced at page level. | ||||
*/ | */ | ||||
gdt_segs[GCODE_SEL].ssd_limit = atop(0 - 1); | gdt_segs[GCODE_SEL].ssd_limit = atop(0 - 1); | ||||
gdt_segs[GDATA_SEL].ssd_limit = atop(0 - 1); | gdt_segs[GDATA_SEL].ssd_limit = atop(0 - 1); | ||||
gdt_segs[GUCODE_SEL].ssd_limit = atop(0 - 1); | gdt_segs[GUCODE_SEL].ssd_limit = atop(0 - 1); | ||||
▲ Show 20 Lines • Show All 899 Lines • Show Last 20 Lines |