From f886bea4481c8802d77e2314f97ce526dd1dc73d Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 16 Feb 1998 18:16:04 +0000 Subject: Update. 1998-02-16 Ulrich Drepper * sysdeps/unix/sysv/linux/alpha/ioperm.c (_ioperm): Map all ports starting from 0 not only from `from'. Patch by Maciej W. Rozycki . --- sysdeps/unix/sysv/linux/alpha/ioperm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sysdeps') 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, -- cgit 1.4.1