Eric,

"EL" == Eric Laberge wrote:

 EL> At 17:18 19/04/2002 +0300, you wrote:
 >> Well, I've done none patches to cvs version, but a couple printk's to
 >> kernel module source.  Are you sure you're interested in them?

 EL> If you post a patch, we can say "no", if you don't, we can't say "yes".

Well, you decide... :)

Difference to the current CVS.  New License scheme patch is not mine, but
from this list.

Index: kernel/host-linux.c
===================================================================
RCS file: /cvsroot-plex86/plex86/kernel/host-linux.c,v
retrieving revision 1.34
diff -u -r1.34 host-linux.c
--- kernel/host-linux.c 2001/06/10 03:41:28     1.34
+++ kernel/host-linux.c 2002/04/19 18:47:57
@@ -127,6 +127,12 @@
     static int plex86_mmap(struct inode * inode, struct file * file, struct 
vm_area_struct * vma);
 #endif
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,9)
+/* New License scheme */
+#ifdef MODULE_LICENSE
+MODULE_LICENSE("LGPL");
+#endif
+#endif
 
 
 
@@ -842,6 +848,9 @@
     start_addr = ((Bit32u)addr) & 0xfffff000;
     n_pages = BytesToPages( (((Bit32u)addr) - start_addr) + size );
 
+    printk(KERN_DEBUG "plex86: retrieve_vm_pages: starting with %u pages,"
+           "%u max_pages %x addr %x size\n", 
+           n_pages, max_pages, addr, size);
     if (!addr) {
       printk(KERN_WARNING "plex86: retrieve_vm_pages: addr NULL!\n");
       return 0;
@@ -868,6 +877,8 @@
         if ( !pde->fields.P || ! pte->fields.P )
         {
             n_pages = i;
+            printk(KERN_DEBUG "plex86: retrieve_vm_pages: set to %u pages\n", 
+                   n_pages);
             break;
         }
         
@@ -883,6 +894,7 @@
         page[i] = pte->fields.base;
     }
 
+    printk(KERN_DEBUG "plex86: retrieve_vm_pages: %u pages\n", n_pages);
     return n_pages;
 }
 





-- 
Andrey V Khavryuchenko          http://www.kds.com.ua/
Offshore Software Development

Reply via email to