lkml.org 
[lkml]   [1999]   [May]   [12]   [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

Even better, how about:

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-1 > ~phys_addr)
return NULL;

/*
This will work for any value of phys_addr and any non-zero value of size (which
the first part of the condition guards against).

David Howells

-
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.017 / U:2.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site