From 158dc80bcd864eda64578c838cd76f72ab76086d Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Tue, 15 May 2001 11:28:03 +0000 Subject: - build glibc and dietlibc targets - bzero string buffer before sscanf call (dietlibc implementation) - verify returns of ioperm so that I can use it in test mode --- mdk-stage1/pcmcia/pcmcia_probe.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mdk-stage1/pcmcia/pcmcia_probe.c') diff --git a/mdk-stage1/pcmcia/pcmcia_probe.c b/mdk-stage1/pcmcia/pcmcia_probe.c index 4cd88d4eb..0d9dd7462 100644 --- a/mdk-stage1/pcmcia/pcmcia_probe.c +++ b/mdk-stage1/pcmcia/pcmcia_probe.c @@ -187,7 +187,10 @@ static int i365_probe(void) log_message("PCMCIA: probing for Intel PCIC (ISA).."); sock = done = 0; - ioperm(i365_base, 4, 1); + if (ioperm(i365_base, 4, 1)) { + log_perror("PCMCIA: ioperm"); + return -1; + } ioperm(0x80, 1, 1); for (; sock < 2; sock++) { val = i365_get(sock, I365_IDENT); @@ -344,7 +347,11 @@ static int tcic_probe(void) log_message("PCMCIA: probing for Databook TCIC-2 (ISA).."); - ioperm(TCIC_BASE, 16, 1); + if (ioperm(TCIC_BASE, 16, 1)) { + log_perror("PCMCIA: ioperm"); + return -1; + } + ioperm(0x80, 1, 1); sock = tcic_probe_at(TCIC_BASE); -- cgit v1.2.1