Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148361207
D49290.1786440966.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
923 B
Referenced Files
None
Subscribers
None
D49290.1786440966.diff
View Options
diff --git a/stand/libsa/smbios.h b/stand/libsa/smbios.h
--- a/stand/libsa/smbios.h
+++ b/stand/libsa/smbios.h
@@ -26,7 +26,7 @@
#ifndef _SMBIOS_H_
#define _SMBIOS_H_
-void smbios_detect(const caddr_t);
+caddr_t smbios_detect(const caddr_t);
int smbios_match(const char *, const char *, const char *);
#endif /* _SMBIOS_H_ */
diff --git a/stand/libsa/smbios.c b/stand/libsa/smbios.c
--- a/stand/libsa/smbios.c
+++ b/stand/libsa/smbios.c
@@ -635,7 +635,7 @@
}
}
-void
+caddr_t
smbios_detect(const caddr_t addr)
{
char buf[16];
@@ -644,7 +644,7 @@
smbios_probe(addr);
if (smbios.addr == NULL)
- return;
+ return (NULL);
for (dmi = smbios.addr, i = 0; dmi != NULL &&
dmi < smbios.addr + smbios.length && i < smbios.count; i++)
@@ -667,6 +667,8 @@
sprintf(buf, "%u", smbios.populated_sockets);
setenv("smbios.socket.populated", buf, 1);
}
+
+ return (smbios.addr);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 11, 9:36 AM (10 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29395479
Default Alt Text
D49290.1786440966.diff (923 B)
Attached To
Mode
D49290: libsa: smbios_detect(): Return the entry point address
Attached
Detach File
Event Timeline
Log In to Comment