Moved panic procedure from tty driver to another source file(panic.c,like in Linux)