/* The "old" variants are for translation directly to font (using the 0xf000-0xf0ff "transparent" Unicodes) whereas the "new" variants set Unicodes explicitly.  */
int con_set_trans_old(unsigned char __user *arg)
/* The "old" variants are for translation directly to font (using the 0xf000-0xf0ff "transparent" Unicodes) whereas the "new" variants set Unicodes explicitly.  */
int con_set_trans_old(unsigned char __user *arg)
{
	int i;
	unsigned short *p = translations[USER_MAP];
	if (!access_ok(VERIFY_READ, arg, E_TABSZ))
		return -EFAULT;
	for (i=0; i<E_TABSZ ; i++) {
		unsigned char uc;
		__get_user(uc, arg+i);
		p[i] = UNI_DIRECT_BASE | uc;
	}
	update_user_maps();
	return 0;
}