From acf101a521ec22952c015146eb76cf0aa551d216 Mon Sep 17 00:00:00 2001 From: Brett Gordon Date: Wed, 7 Oct 2015 11:40:21 -0400 Subject: [PATCH] coco3: tty: adjust buffer address to accomodate 25 lines. --- Kernel/platform-coco3/devtty.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/platform-coco3/devtty.c b/Kernel/platform-coco3/devtty.c index 1515fdc6..3f757c82 100644 --- a/Kernel/platform-coco3/devtty.c +++ b/Kernel/platform-coco3/devtty.c @@ -142,11 +142,11 @@ static struct pty ptytab[] = { &fmodes[0] }, { - (unsigned char *) 0xac80, + (unsigned char *) 0xac00, NULL, 0, {0, 0, 0, 0}, - 0xac80 / 8, + 0xac00 / 8, 0x6c, /* 40 column */ 40, 25, @@ -530,7 +530,7 @@ void devtty_init() /* apply default/cmdline mode to terminal structs */ for( i=0; i<2; i++){ - memcpy( &(ptytab[i].gime), &(mode[defmode]), 5 ); + memcpy( &(ptytab[i].gime), &(mode[defmode]), sizeof( struct mode_s ) ); } apply_gime( 1 ); /* apply initial tty1 to regs */ } -- 2.34.1