FreeBSD Bugzilla – Attachment 104380 Details for
Bug 144548
[boot] [patch] Enable automatic detection of amd64/i386 at boot time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 765 bytes, created by
Alexei Volkov
on 2010-03-08 11:00:11 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Alexei Volkov
Created:
2010-03-08 11:00:11 UTC
Size:
765 bytes
patch
obsolete
>--- /usr/src/sys/boot/i386/loader/main.c 2010-02-10 12:36:20.468937250 +0300 >+++ /usr/src/sys/boot/i386/loader/main.c 2010-02-10 12:36:49.796728917 +0300 >@@ -185,6 +185,11 @@ > setenv("LINES", "24", 1); /* optional */ > > bios_getsmap(); >+ >+ if (bi_checkcpu()) >+ setenv("hw.machine","amd64",1); >+ else >+ setenv("hw.machine","i386",1); > > interact(); /* doesn't return */ > >--- /usr/src/sys/boot/i386/libi386/bootinfo64.c 2010-02-10 12:36:32.213285664 +0300 >+++ /usr/src/sys/boot/i386/libi386/bootinfo64.c 2010-02-10 12:19:17.000000000 +0300 >@@ -129,7 +129,7 @@ > /* > * Check to see if this CPU supports long mode. > */ >-static int >+int > bi_checkcpu(void) > { > char *cpu_vendor;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 144548
: 104380