minor fixes

This commit is contained in:
Ben Gras 2008-11-19 14:10:33 +00:00
parent 6c92081a5a
commit 51fdce1d36
4 changed files with 5 additions and 12 deletions

View 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--;

View file

@ -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)

View 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;

View file

@ -132,7 +132,7 @@ do
esac
done
USRMB=400
USRMB=150
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
USRSECTS="`expr $USRMB \* 1024 \* 2`"