From 0b265b33d3c21e04484bcef08529ae73e99e8073 Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 21 Jul 2005 09:48:37 +0000 Subject: 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 Slightly changed by: phk PR: 81360 --- sys/amd64/amd64/bios.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'sys/amd64/amd64/bios.c') 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); -} -- cgit v1.1