Date: Fri, 20 Apr 2018 12:40:06 +0000 (UTC) From: Takahashi Yoshihiro <nyan@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r332815 - stable/11/sys/pc98/cbus Message-ID: <201804201240.w3KCe66V001449@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nyan Date: Fri Apr 20 12:40:05 2018 New Revision: 332815 URL: https://svnweb.freebsd.org/changeset/base/332815 Log: - Use __FBSDID(). - Fix pc98 build. Merge from sys/dev/syscons/scterm-teken.c r330918. Modified: stable/11/sys/pc98/cbus/scterm-sck.c Modified: stable/11/sys/pc98/cbus/scterm-sck.c ============================================================================== --- stable/11/sys/pc98/cbus/scterm-sck.c Fri Apr 20 12:37:08 2018 (r332814) +++ stable/11/sys/pc98/cbus/scterm-sck.c Fri Apr 20 12:40:05 2018 (r332815) @@ -22,10 +22,11 @@ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - * - * $FreeBSD$ */ +#include <sys/cdefs.h> +__FBSDID("$FreeBSD$"); + #include "opt_syscons.h" #include <sys/param.h> @@ -909,24 +910,18 @@ scterm_scan_esc(scr_stat *scp, term_stat *tcp, u_char } static void -scterm_puts(scr_stat *scp, u_char *buf, int len, int kernel) +scterm_puts(scr_stat *scp, u_char *buf, int len) { term_stat *tcp; u_char *ptr; #ifdef KANJI u_short kanji_code; #endif - color_t backup; tcp = scp->ts; ptr = buf; outloop: scp->sc->write_in_progress++; - backup = tcp->cur_color; - if (kernel) { - tcp->cur_color.fg = SC_KERNEL_CONS_ATTR & 0x0f; - tcp->cur_color.bg = (SC_KERNEL_CONS_ATTR >> 4) & 0x0f; - } if (tcp->esc) { scterm_scan_esc(scp, tcp, *ptr++); @@ -1109,8 +1104,6 @@ ascii_end: sc_term_gen_scroll(scp, scp->sc->scr_map[0x20], tcp->cur_attr); - if (kernel) - tcp->cur_color = backup; scp->sc->write_in_progress--; if (len) goto outloop;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804201240.w3KCe66V001449>