]> Zhao Yanbai Git Server - minix.git/commitdiff
minor fixes
authorBen Gras <ben@minix3.org>
Wed, 19 Nov 2008 14:10:33 +0000 (14:10 +0000)
committerBen Gras <ben@minix3.org>
Wed, 19 Nov 2008 14:10:33 +0000 (14:10 +0000)
kernel/arch/i386/system.c
kernel/system.c
servers/mfs/cache.c
tools/release.sh

index aa0aef6488a88fda17192ce134b42e378effa9ef..00e6bde35a151853c899cb0ccd029168446a5766 100644 (file)
@@ -60,7 +60,7 @@ PUBLIC void arch_shutdown(int how)
                                        c != '\'' && c != '"' &&
                                        c != '\\' && c != ';') {
                                        mybuffer[dest] = c;
-                               } else  mybuffer[dest] = '|';
+                               } else  mybuffer[dest] = ' ';
 
                                DECSOURCE;
                                dest--;
index e3921075757f45f4ac08fb77be6c9c3b16792885..5f8a327100f6a158139dbc1ad7ad91d3ba4ed9fe 100755 (executable)
@@ -78,13 +78,6 @@ PUBLIC void sys_task()
   while (TRUE) {
       struct proc *restarting;
 
-#if 0
-if(!(n++ % 100000)) {
-       int i;
-       kprintf("switch %8d reload %8d\n", cr3switch, cr3reload);
-}
-#endif
-
       restarting = vmrestart_check(&m);
       softnotify_check();
        if(softnotify)
index ed04fc364c85c678089d97c61b80c27102e957b3..c75f2321a5551ac77e885cb4115b2f590a236d76 100644 (file)
@@ -65,6 +65,7 @@ int only_search;              /* if NO_READ, don't read, else act normal */
                        /* Block needed has been found. */
                        if (bp->b_count == 0) rm_lru(bp);
                        bp->b_count++;  /* record that block is in use */
+                       ASSERT(bp->b_bytes == fs_block_size);
                        ASSERT(bp->b_dev == dev);
                        ASSERT(bp->b_dev != NO_DEV);
                        ASSERT(bp->bp);
@@ -112,9 +113,8 @@ int only_search;            /* if NO_READ, don't read, else act normal */
   if(bp->b_bytes < fs_block_size) {
        static int n = 0;
        phys_bytes ph;
-       if(bp->b_bytes > 0)
-               printf("MFS: WARNING: throwing away %d bytes!\n",
-                       bp->b_bytes);
+       ASSERT(!bp->bp);
+       ASSERT(bp->b_bytes == 0);
        if(!(bp->bp = alloc_contig(fs_block_size, 0, &ph)))
                panic(__FILE__,"couldn't allocate FS buffer", n);
        bp->b_bytes = fs_block_size;
index 1b61d30db48ad1d71e1eeb78d09b2c08edc1b789..bdd96c72ec1b277ff0ce9c8170ebce2396ef16df 100755 (executable)
@@ -132,7 +132,7 @@ do
        esac
 done
 
-USRMB=400
+USRMB=150
 
 USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
 USRSECTS="`expr $USRMB \* 1024 \* 2`"