lkml.org 
[lkml]   [1998]   [Jan]   [16]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateThu, 15 Jan 1998 23:34:29 +0100
FromPavel Machek <>
SubjectFix for 2.1.79 to run on 386
Hi!

This small fix is needed for 2.1.79 to boot on 386. Share and enjoy!
								Pavel

--- linux/include/asm/uaccess.h~	Wed Jan 14 23:18:54 1998
+++ linux/include/asm/uaccess.h	Thu Jan 15 22:43:16 1998
@@ -51,6 +51,7 @@
 
 #define access_ok(type,addr,size) ( (__range_ok(addr,size) == 0) && \
 			 ((type) == VERIFY_READ || boot_cpu_data.wp_works_ok || \
+			  segment_eq( KERNEL_DS, get_fs()) || \
 			  __verify_write((void *)(addr),(size))))
 
 #endif /* CPU */
-- 
I'm really pavel@atrey.karlin.mff.cuni.cz. 	   Pavel
Look at http://atrey.karlin.mff.cuni.cz/~pavel/ ;-).

\
 
 \ /
  Last update: 2005-03-22 12:41    [from the cache]
©2003-2008