coco3: tty: be more pendantic.
authorBrett Gordon <beretta42@gmail.com>
Wed, 7 Oct 2015 18:36:19 +0000 (14:36 -0400)
committerBrett Gordon <beretta42@gmail.com>
Wed, 7 Oct 2015 18:36:19 +0000 (14:36 -0400)
Kernel/platform-coco3/devtty.c

index 3f757c8..6fa56a4 100644 (file)
@@ -166,8 +166,8 @@ int curminor = 1;
 
 /* Apply settings to GIME chip */
 void apply_gime( int minor ){
-       *(unsigned int *) 0xff9d = ptytab[minor-1].scrloc;
-       *(unsigned char *) 0xff99 = ptytab[minor-1].gime;
+       *(volatile uint16_t *) 0xff9d = ptytab[minor-1].scrloc;
+       *(volatile uint8_t *) 0xff99 = ptytab[minor-1].gime;
 }