From owner-cvs-src@FreeBSD.ORG Wed Sep 20 19:15:22 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB9D116A5C8; Wed, 20 Sep 2006 19:15:22 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id F30F043D5C; Wed, 20 Sep 2006 19:15:10 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 2FE725E02; Wed, 20 Sep 2006 23:15:09 +0400 (MSD) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 1021C5DFA; Wed, 20 Sep 2006 23:15:09 +0400 (MSD) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id k8KJFBKg029094; Wed, 20 Sep 2006 23:15:11 +0400 (MSD) (envelope-from ru) Date: Wed, 20 Sep 2006 23:15:11 +0400 From: Ruslan Ermilov To: Maksim Yevmenkin Message-ID: <20060920191511.GC28844@rambler-co.ru> References: <20060919221404.GT94944@alchemy.franken.de> <20060920055715.GA81843@rambler-co.ru> <20060920121017.GU94944@alchemy.franken.de> <20060920122830.GB982@rambler-co.ru> <20060920162105.GC9976@rambler-co.ru> <20060920163710.GA28144@rambler-co.ru> <20060920185618.GA28844@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, Marius Strobl Subject: Re: cvs commit: src/sys/dev/kbdmux kbdmux.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Sep 2006 19:15:22 -0000 On Wed, Sep 20, 2006 at 12:04:49PM -0700, Maksim Yevmenkin wrote: > ok, i just tested the following patch on sparc64 and it makes > 'kbdcontrol -k' work as expected. i can now switch between ukbd0 and > sunkbd0 without any problems. > > --- syscons.c.orig Fri Mar 3 16:41:28 2006 > +++ syscons.c Wed Sep 20 09:57:09 2006 > @@ -1194,7 +1194,7 @@ > keyboard_t *newkbd; > > s = spltty(); > - newkbd = kbd_get_keyboard(*(int *)data); > + newkbd = kbd_get_keyboard(*(intptr_t *)data); > if (newkbd == NULL) { > splx(s); > return EINVAL; > > can i commit it? > > thanks, > max > > p.s. yes, i know, there are few other ioctl's with the same problem. i > just want to address it one ioctl at a time :) > Please don't. I have this fix already locally, - newkbd = kbd_get_keyboard(*(int *)data); + newkbd = kbd_get_keyboard((int)*(intptr_t *)data); but I'm also discussing the gory details with Bruce Evans, and I don't want to do multiple commits if it turns out that we need a slightly different technique. Please keep the file locally until I send the whole patch. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer