summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/bios.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-07-21 09:48:37 +0000
committerphk <phk@FreeBSD.org>2005-07-21 09:48:37 +0000
commit0b265b33d3c21e04484bcef08529ae73e99e8073 (patch)
treea94154d475539403bc055351b9fa713d258e8a5b /sys/amd64/amd64/bios.c
parenta2c6f4658e7cf879dba4bc06a47655bc064938ca (diff)
downloadFreeBSD-src-0b265b33d3c21e04484bcef08529ae73e99e8073.zip
FreeBSD-src-0b265b33d3c21e04484bcef08529ae73e99e8073.tar.gz
Make the facility for recognizing BIOS-signatures more general
and return a printable representation. This fixes recognition of the PC Engines WRAP and improves the recognition of the Soekris boards (Bios version can now be seen in the dmesg output for instance). Also, add watchdog support for PCM-582x platforms. Submitted by: Adrian Steinmann <ast@marabu.ch> Slightly changed by: phk PR: 81360
Diffstat (limited to 'sys/amd64/amd64/bios.c')
-rw-r--r--sys/amd64/amd64/bios.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/sys/amd64/amd64/bios.c b/sys/amd64/amd64/bios.c
index d08f5cc..c8985c1 100644
--- a/sys/amd64/amd64/bios.c
+++ b/sys/amd64/amd64/bios.c
@@ -93,18 +93,3 @@ bios_sigsearch(u_int32_t start, u_char *sig, int siglen, int paralen, int sigofs
}
return(0);
}
-
-const u_char *
-bios_string(u_int from, u_int to, const u_char *string, int len)
-{
- const char *t, *te;
-
- if (len == 0)
- len = strlen(string);
- t = (const char *)(KERNBASE + from);
- te = (const char *)(KERNBASE + to);
- for (; t <= te; t++)
- if (!memcmp(string, t, len))
- return (t);
- return (NULL);
-}
OpenPOWER on IntegriCloud