diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-02-16 18:16:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-02-16 18:16:04 +0000 |
commit | f886bea4481c8802d77e2314f97ce526dd1dc73d (patch) | |
tree | 6423ed6bc621411f0a5f34f86bfdeb37fe38fabf | |
parent | 880f421fc30003d1626429e8796d43b91d71cab9 (diff) | |
download | glibc-f886bea4481c8802d77e2314f97ce526dd1dc73d.zip glibc-f886bea4481c8802d77e2314f97ce526dd1dc73d.tar.gz glibc-f886bea4481c8802d77e2314f97ce526dd1dc73d.tar.bz2 |
Update.
1998-02-16 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/alpha/ioperm.c (_ioperm): Map all ports
starting from 0 not only from `from'.
Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/alpha/ioperm.c | 5 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,9 @@ +1998-02-16 Ulrich Drepper <drepper@cygnus.com> + + * sysdeps/unix/sysv/linux/alpha/ioperm.c (_ioperm): Map all ports + starting from 0 not only from `from'. + Patch by Maciej W. Rozycki <macro@ds2.pg.gda.pl>. + 1998-02-16 17:33 Ulrich Drepper <drepper@cygnus.com> * elf/rtld.c (dl_main): Recognize --library-path parameter and diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c index 76a744d..cf263f7 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, |