diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-02-16 18:13:11 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-02-16 18:13:11 +0000 |
commit | d7d1f4baddee50c8629458a84a0d0a28865708f8 (patch) | |
tree | 60c2a6d0b4bd0d4d04f89df424ebbf524067beca /sysdeps | |
parent | 4fba2352f8afa2eccb6c4f81b55e30dff5fde0c0 (diff) | |
download | glibc-d7d1f4baddee50c8629458a84a0d0a28865708f8.tar glibc-d7d1f4baddee50c8629458a84a0d0a28865708f8.tar.gz glibc-d7d1f4baddee50c8629458a84a0d0a28865708f8.tar.bz2 glibc-d7d1f4baddee50c8629458a84a0d0a28865708f8.zip |
(_ioperm): Map all ports starting from 0 not only from `from'.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/unix/sysv/linux/alpha/ioperm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c index 76a744d167..cf263f762c 100644 --- a/sysdeps/unix/sysv/linux/alpha/ioperm.c +++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1992, 1996, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by David Mosberger. @@ -416,8 +416,7 @@ _ioperm (unsigned long int from, unsigned long int num, int turn_on) __set_errno (ENODEV); return -1; } - addr = port_to_cpu_addr (from, io.sys, 1); - addr &= PAGE_MASK; + addr = port_to_cpu_addr (0, io.sys, 1); len = port_to_cpu_addr (MAX_PORT, io.sys, 1) - addr; io.base = (unsigned long int) __mmap (0, len, PROT_NONE, MAP_SHARED, |