[Kos-cvs] kos/modules/ide Makefile, 1.7, 1.8 _ide.h, 1.10, 1.11 _ide_karm.c, 1.10, 1.11

thomas at kos.enix.org thomas at kos.enix.org
Sun Jan 30 17:11:22 CET 2005


Update of /home/kos/cvs/kos/modules/ide
In directory the-doors:/tmp/cvs-serv3480/modules/ide

Modified Files:
	Makefile _ide.h _ide_karm.c 
Log Message:
2005-01-30  Thomas Petazzoni  <thomas at crazy.kos.nx>

	* modules/x86/mm/Makefile (DEBUG_LEVEL): 1 -> 0

	* modules/vmm/_vmm_as.c: Moved as_dump and vr_dump, create
	as_dump_unsafe.

	* modules/vmm/Makefile (DEBUG_LEVEL): 3 -> 0

	* modules/tty/_tty.c, modules/tty/_tty_kres.c: DEBUG_PRINTx
	conformance + memset().

	* modules/lib/blockfile/libblockfile.c,
	modules/lib/charfile/libcharfile.c,
	modules/lib/filemap/libfilemap.c: Added memset() needed when
	allocated buffer is poisoned. Whitespaces.

	* modules/kmem/_kvmem_free.c: DEBUG_PRINTx conformance +
	whitespaces.

	* modules/kmem/_kvmem_alloc.c (kvalloc): Poison the allocated
	memory + DEBUG_PRINTx conformance.

	* modules/kmem/_kslab_cache_free.c (__kslab_cache_free_by_slab):
	Poison the freed buffer.

	* modules/kmem/_kslab_cache_alloc.c (kslab_cache_alloc): Poison
	the allocated buffer.

	* modules/kmem/_kmem_free.c (kfree): DEBUG_PRINTx conformance.

	* modules/kmem/_kmem_alloc.c (kmalloc): Whitespaces + DEBUG_PRINTx
	conformance.

	* modules/kitc/_kmutex.c: Remove [function] as they are generated
	by DEBUG_PRINTx now.

	* modules/karm/open.c: Whitespaces.

	* modules/karm/mount.c (mount): Cleaned the way of calling
	fs->attach().

	* modules/ide/_ide_karm.c: More debugging messages.

	* modules/ide/_ide.h (ide_device_info): Correct position of packed
	attribute to make gcc happy.

	* modules/part/Makefile (DEBUG_LEVEL), modules/karm/Makefile
	(DEBUG_LEVEL), modules/ide/Makefile
	(DEBUG_LEVEL), modules/fs/devfs/Makefile
	(DEBUG_LEVEL), modules/fs/fat/Makefile
	(DEBUG_LEVEL) : New variable.

	* modules/fs/devfs/devfs.c, modules/fs/fat/_fat.c,
	modules/fs/fat/_fat_karm.c: Added memset() found using the
	poisoning stuff in kmem. More debugging messages using
	DEBUG_PRINTx.

	* modules/debug/debug.h: DEBUG_PRINTx macros now call
	DEBUG_PRINT_VERBOSE instead of __dbg_printk, so that the line
	number, function and file names are printed before the debug
	message.

	* TODO: More things to do.



Index: Makefile
===================================================================
RCS file: /home/kos/cvs/kos/modules/ide/Makefile,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- Makefile	18 Aug 2003 00:41:57 -0000	1.7
+++ Makefile	30 Jan 2005 16:11:20 -0000	1.8
@@ -1,5 +1,7 @@
 OBJS=ide.o _ide.o _ide_karm.o
 
+DEBUG_LEVEL=0
+
 all:ide.ro
 
 ide.ro: $(OBJS)

Index: _ide_karm.c
===================================================================
RCS file: /home/kos/cvs/kos/modules/ide/_ide_karm.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- _ide_karm.c	29 Dec 2003 13:42:50 -0000	1.10
+++ _ide_karm.c	30 Jan 2005 16:11:20 -0000	1.11
@@ -105,6 +105,8 @@
   struct view *view;
   result_t result;
 
+  DEBUG_PRINT2("[_ide_register_disk] called for %s\n", name);
+
   kres = kmalloc(sizeof(struct kres));
   if(kres == NULL)
     {
@@ -138,6 +140,7 @@
   result = devfs_register("disk", name, kres, & device->devfs_id);
   if(result < 0)
     {
+      DEBUG_PRINT2("devfs_register failed with %d\n", result);
       kfree(view);
       kfree(kres);
       return result;
@@ -146,6 +149,7 @@
   result = ures_open(kres, INTERFACE_BLOCK_ID, & block_ures);
   if (result < 0)
     {
+      DEBUG_PRINT2("ures_open failed with %d\n", result);
       devfs_unregister(device->devfs_id);
       kfree(view);
       kfree(kres);
@@ -155,6 +159,7 @@
   result = register_file_view(block_ures);
   if (result < 0)
     {
+      DEBUG_PRINT2("register_file_view failed with %d\n", result);
       ures_close(block_ures);
       devfs_unregister(device->devfs_id);
       kfree(view);

Index: _ide.h
===================================================================
RCS file: /home/kos/cvs/kos/modules/ide/_ide.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- _ide.h	28 Dec 2004 18:44:23 -0000	1.10
+++ _ide.h	30 Jan 2005 16:11:20 -0000	1.11
@@ -114,7 +114,7 @@
   k_ui16_t reserved6;                /* 127 */
   k_ui16_t security;                 /* 128 */
   k_ui16_t reserved7[127];
-} ide_device_info_t __attribute__((packed));
+} __attribute__((packed)) ide_device_info_t ;
 
 
 #define IDE_MAX_CTRL             2



More information about the Kos-cvs mailing list