implement stdout with cputbuf instead of printk
authorAndrew Waterman <waterman@eecs.berkeley.edu>
Fri, 18 May 2012 23:51:38 +0000 (16:51 -0700)
committerAndrew Waterman <waterman@eecs.berkeley.edu>
Fri, 18 May 2012 23:51:38 +0000 (16:51 -0700)
This improves stdout bandwidth.  (Yes, it matters to us :-))

kern/src/devfs.c

index 4c81b0e..2ce45cb 100644 (file)
@@ -109,7 +109,7 @@ ssize_t dev_stdout_write(struct file *file, const char *buf, size_t count,
         * everything else. */
        if (t_buf[0] == '\033') /* 0x1b */
                return count;
-       printk("%s", t_buf);
+       cputbuf(t_buf, count);
        return count;
 }