Print a short message if no Super I/O chip could be detected (trivial).
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2835 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
/* Command line options. */
|
||||
int dump = 0, dump_readable = 0, verbose = 0;
|
||||
|
||||
/* Global flag which indicates whether a chip was detected at all. */
|
||||
int chip_found = 0;
|
||||
|
||||
uint8_t regval(uint16_t port, uint8_t reg)
|
||||
{
|
||||
outb(reg, port);
|
||||
@@ -229,5 +232,8 @@ int main(int argc, char *argv[])
|
||||
superio_ports_table[i].ports[j]);
|
||||
}
|
||||
|
||||
if (!chip_found)
|
||||
printf("No Super I/O found\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user