aboutsummaryrefslogtreecommitdiff
path: root/sys/isa/syscons.c
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1998-11-08 12:39:07 +0000
committerDoug Rabson <dfr@FreeBSD.org>1998-11-08 12:39:07 +0000
commit7095ee912b8713f2cff3b588999d4723e4743c73 (patch)
tree04366f3e92e24faa81195959038c366f48db786b /sys/isa/syscons.c
parent370402654f1d54201477e57eefb03c3c41bea9fd (diff)
* Fix a couple of places in the device pager where an address was
truncated to 32 bits. * Change the calling convention of the device mmap entry point to pass a vm_offset_t instead of an int for the offset allowing devices with a larger memory map than (1<<32) to be supported on the alpha (/dev/mem is one such). These changes are required to allow the X server to mmap the various I/O regions used for device port and memory access on the alpha.
Notes
Notes: svn path=/head/; revision=41004
Diffstat (limited to 'sys/isa/syscons.c')
-rw-r--r--sys/isa/syscons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/isa/syscons.c b/sys/isa/syscons.c
index 3c3bf5ecd6fd..65a51537b4b7 100644
--- a/sys/isa/syscons.c
+++ b/sys/isa/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.274 1998/09/17 09:38:35 dfr Exp $
+ * $Id: syscons.c,v 1.275 1998/10/31 10:35:23 dfr Exp $
* from: i386/isa syscons.c,v 1.278
*/
@@ -3936,7 +3936,7 @@ next_code:
}
int
-scmmap(dev_t dev, int offset, int nprot)
+scmmap(dev_t dev, vm_offset_t offset, int nprot)
{
if (offset > 0x20000 - PAGE_SIZE)
return -1;