Remove the old console input code; use qio
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 5 Oct 2016 16:16:41 +0000 (12:16 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 6 Oct 2016 19:41:48 +0000 (15:41 -0400)
commit6d471cf4cee92b5fe38fc2d82a84252a6f12020a
tree037c35a327ae704a7f0afa95f924f78246287bf8
parent3e35adc452f2a01656aee3c134666c398e93e41e
Remove the old console input code; use qio

This removes all of console.{c,h}, replacing its functionality with a
basic qio queue in devcons.

Other than using qio instead of the homebrewed rings and sems, this
also uses qiwrite directly from interrupt context.  This avoids an
excessive kernel message.

There were also a couple monitor-related commands sitting around in
console.{c.h}, which I moved to monitor files.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
13 files changed:
kern/arch/riscv/console.c
kern/arch/riscv/trap.c
kern/arch/x86/init.c
kern/drivers/dev/cons.c
kern/drivers/dev/regress.c
kern/include/console.h [deleted file]
kern/include/monitor.h
kern/include/ns.h
kern/src/Kbuild
kern/src/console.c [deleted file]
kern/src/devfs.c
kern/src/init.c
kern/src/monitor.c