lkml.org 
[lkml]   [1999]   [May]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: mmap from 0xFFFF0000 -> 0xFFFFFFFF does not work, why?!
Date
From
Try applying the attached patch.

David Howells
=============

diff -uNr linux-2.2.3/arch/i386/mm/ioremap.c linux-2.2.3-cmgr/arch/i386/mm/ioremap.c
--- linux-2.2.3/arch/i386/mm/ioremap.c Fri Nov 27 23:03:14 1998
+++ linux-2.2.3-cmgr/arch/i386/mm/ioremap.c Sun Mar 21 11:42:42 1999
@@ -117,7 +117,7 @@
/*
* Don't allow mappings that wrap..
*/
- if (!size || size > phys_addr + size)
+ if (!size || (size != ~phys_addr+1 && size > phys_addr + size))
return NULL;

/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.026 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site