summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/pcmcia/pcmcia_probe.c
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2001-05-15 11:28:03 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2001-05-15 11:28:03 +0000
commit158dc80bcd864eda64578c838cd76f72ab76086d (patch)
tree7c5aed20a3a7e5a1f6640d8aabf58228a04782d4 /mdk-stage1/pcmcia/pcmcia_probe.c
parentafd9291ef3d0279b49de38fceac5f11b8ba54360 (diff)
downloaddrakx-158dc80bcd864eda64578c838cd76f72ab76086d.tar
drakx-158dc80bcd864eda64578c838cd76f72ab76086d.tar.gz
drakx-158dc80bcd864eda64578c838cd76f72ab76086d.tar.bz2
drakx-158dc80bcd864eda64578c838cd76f72ab76086d.tar.xz
drakx-158dc80bcd864eda64578c838cd76f72ab76086d.zip
- 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
Diffstat (limited to 'mdk-stage1/pcmcia/pcmcia_probe.c')
-rw-r--r--mdk-stage1/pcmcia/pcmcia_probe.c11
1 files changed, 9 insertions, 2 deletions
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);