Do console locking.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 11 Sep 2004 23:35:13 +0000 (23:35 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 11 Sep 2004 23:35:13 +0000 (23:35 +0000)
Rename printf.c to console.c to better explain its function.
Move puts() from lib to lib/{user,kernel} so it can take console lock.

src/Makefile.build

index e77230089f0eaa4a605da627b3971c8c1445c864..0293a0f5e868f35ab65f7ef8dd40166cb2864e2d 100644 (file)
@@ -46,7 +46,7 @@ lib_SRC += lib/string.c               # String functions.
 lib_kernel_SRC += lib/kernel/list.c    # Doubly-linked lists.
 lib_kernel_SRC += lib/kernel/bitmap.c  # Bitmaps.
 lib_kernel_SRC += lib/kernel/hash.c    # Hash tables.
-lib_kernel_SRC += lib/kernel/printf.c  # Kernel printf().
+lib_kernel_SRC += lib/kernel/console.c # printf(), putchar().
 
 # Filesystem code.
 filesys_SRC  = filesys/filesys.c       # Filesystem core.