View | Details | Raw Unified | Return to bug 144548
Collapse All | Expand All

(-)/usr/src/sys/boot/i386/loader/main.c 2010-02-10 12:36:49.796728917 +0300 (+5 lines)
Lines 185-190 Link Here
185
    setenv("LINES", "24", 1);                  /* optional */
185
    setenv("LINES", "24", 1);                  /* optional */
186
    bios_getsmap();
186
    bios_getsmap();
187
188
    if (bi_checkcpu())
189
       setenv("hw.machine","amd64",1);
190
    else
191
       setenv("hw.machine","i386",1);
187
    interact();                        /* doesn't return */
192
    interact();                        /* doesn't return */
(-)/usr/src/sys/boot/i386/libi386/bootinfo64.c 2010-02-10 12:19:17.000000000 +0300 (-1 / +1 lines)
Lines 129-135 Link Here
129
/*
129
/*
130
 * Check to see if this CPU supports long mode.
130
 * Check to see if this CPU supports long mode.
131
 */
131
 */
132
static int
132
int
133
bi_checkcpu(void)
133
bi_checkcpu(void)
134
{
134
{
135
    char *cpu_vendor;
135
    char *cpu_vendor;

Return to bug 144548