From: sjoerd@spring.luon.net (Sjoerd Simons)
To: sparclinux@vger.kernel.org
Subject: ioct32 bit compatibilty questions
Date: Thu, 11 Nov 2004 11:00:24 +0000 [thread overview]
Message-ID: <20041111110024.GA8836@spring.luon.net> (raw)
Hi,
I'm trying to get ALSA working on my ultra 5 (thatis working with 32 bit
userspace). With vanilla 2.6.9 the machine just hangs when running alsa
mixer.
After some debugging it seems that some alsa ioctl have a pointer to a
userspace pointer in their argument struct. When doing a copy_to_user in the
native ioctl to that address (thus directly to the 32bit userspace program
while get_fs() = KERNEL_DS), the machine just hangs. Is this something
that can't be done on sparc64 ?
I've ``fixed'' the SNDRV_CTL_IOCTL_ELEM_LIST to create a buffer and pass that
to userspace in the handler instead of doing it directly in the native ioctl.
Is this the right way ?
At least alsamixer is working now :) Some other ioctl have the same problem,
that i still need to fix.
Any advice is appreciated :)
Sjoerd
--
Any sufficiently advanced technology is indistinguishable from magic.
-- Arthur C. Clarke
next reply other threads:[~2004-11-11 11:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-11 11:00 Sjoerd Simons [this message]
2004-11-11 19:04 ` ioct32 bit compatibilty questions David S. Miller
2004-11-20 15:47 ` Sjoerd Simons
2004-11-20 15:50 ` Sjoerd Simons
2004-11-21 10:41 ` Jeremy Huddleston
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041111110024.GA8836@spring.luon.net \
--to=sjoerd@spring.luon.net \
--cc=sparclinux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.