Much like serial, the tty is done differently on other architectures. Therefore it should be separated from the common code and made arch-specific.