Page MenuHomeFreeBSD

D28740.diff
No OneTemporary

D28740.diff

Index: sys/dev/smbios/smbios.c
===================================================================
--- sys/dev/smbios/smbios.c
+++ sys/dev/smbios/smbios.c
@@ -96,20 +96,28 @@
if (!device_is_alive(parent))
return;
+ if (resource_long_value("smbios3", 0, "mem", &addr) != 0) {
#if defined(__amd64__) || defined(__i386__)
- addr = bios_sigsearch(SMBIOS_START, SMBIOS3_SIG, SMBIOS3_LEN,
- SMBIOS_STEP, SMBIOS_OFF);
+ addr = bios_sigsearch(SMBIOS_START, SMBIOS3_SIG, SMBIOS3_LEN,
+ SMBIOS_STEP, SMBIOS_OFF);
+#else
+ addr = 0;
+#endif
+ }
if (addr != 0) {
eps_64bit = true;
} else {
eps_64bit = false;
- addr = bios_sigsearch(SMBIOS_START, SMBIOS_SIG, SMBIOS_LEN,
- SMBIOS_STEP, SMBIOS_OFF);
- }
+ if (resource_long_value("smbios", 0, "mem", &addr) != 0) {
+#if defined(__amd64__) || defined(__i386__)
+ addr = bios_sigsearch(SMBIOS_START, SMBIOS_SIG, SMBIOS_LEN,
+ SMBIOS_STEP, SMBIOS_OFF);
#else
- addr = 0;
+ addr = 0;
#endif
+ }
+ }
if (addr != 0) {
if (eps_64bit) {

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 11, 1:41 PM (21 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15754299
Default Alt Text
D28740.diff (1 KB)

Event Timeline