minor fixes
This commit is contained in:
parent
6c92081a5a
commit
51fdce1d36
4 changed files with 5 additions and 12 deletions
|
@ -60,7 +60,7 @@ PUBLIC void arch_shutdown(int how)
|
||||||
c != '\'' && c != '"' &&
|
c != '\'' && c != '"' &&
|
||||||
c != '\\' && c != ';') {
|
c != '\\' && c != ';') {
|
||||||
mybuffer[dest] = c;
|
mybuffer[dest] = c;
|
||||||
} else mybuffer[dest] = '|';
|
} else mybuffer[dest] = ' ';
|
||||||
|
|
||||||
DECSOURCE;
|
DECSOURCE;
|
||||||
dest--;
|
dest--;
|
||||||
|
|
|
@ -78,13 +78,6 @@ PUBLIC void sys_task()
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
struct proc *restarting;
|
struct proc *restarting;
|
||||||
|
|
||||||
#if 0
|
|
||||||
if(!(n++ % 100000)) {
|
|
||||||
int i;
|
|
||||||
kprintf("switch %8d reload %8d\n", cr3switch, cr3reload);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
restarting = vmrestart_check(&m);
|
restarting = vmrestart_check(&m);
|
||||||
softnotify_check();
|
softnotify_check();
|
||||||
if(softnotify)
|
if(softnotify)
|
||||||
|
|
|
@ -65,6 +65,7 @@ int only_search; /* if NO_READ, don't read, else act normal */
|
||||||
/* Block needed has been found. */
|
/* Block needed has been found. */
|
||||||
if (bp->b_count == 0) rm_lru(bp);
|
if (bp->b_count == 0) rm_lru(bp);
|
||||||
bp->b_count++; /* record that block is in use */
|
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 == dev);
|
||||||
ASSERT(bp->b_dev != NO_DEV);
|
ASSERT(bp->b_dev != NO_DEV);
|
||||||
ASSERT(bp->bp);
|
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) {
|
if(bp->b_bytes < fs_block_size) {
|
||||||
static int n = 0;
|
static int n = 0;
|
||||||
phys_bytes ph;
|
phys_bytes ph;
|
||||||
if(bp->b_bytes > 0)
|
ASSERT(!bp->bp);
|
||||||
printf("MFS: WARNING: throwing away %d bytes!\n",
|
ASSERT(bp->b_bytes == 0);
|
||||||
bp->b_bytes);
|
|
||||||
if(!(bp->bp = alloc_contig(fs_block_size, 0, &ph)))
|
if(!(bp->bp = alloc_contig(fs_block_size, 0, &ph)))
|
||||||
panic(__FILE__,"couldn't allocate FS buffer", n);
|
panic(__FILE__,"couldn't allocate FS buffer", n);
|
||||||
bp->b_bytes = fs_block_size;
|
bp->b_bytes = fs_block_size;
|
||||||
|
|
|
@ -132,7 +132,7 @@ do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
USRMB=400
|
USRMB=150
|
||||||
|
|
||||||
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
|
USRBLOCKS="`expr $USRMB \* 1024 \* 1024 / $BS`"
|
||||||
USRSECTS="`expr $USRMB \* 1024 \* 2`"
|
USRSECTS="`expr $USRMB \* 1024 \* 2`"
|
||||||
|
|
Loading…
Reference in a new issue