All of lore.kernel.org
 help / color / mirror / Atom feed
* ioct32 bit compatibilty questions
@ 2004-11-11 11:00 Sjoerd Simons
  2004-11-11 19:04 ` David S. Miller
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Sjoerd Simons @ 2004-11-11 11:00 UTC (permalink / raw)
  To: sparclinux

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-11-21 10:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-11 11:00 ioct32 bit compatibilty questions Sjoerd Simons
2004-11-11 19:04 ` David S. Miller
2004-11-20 15:47 ` Sjoerd Simons
2004-11-20 15:50 ` Sjoerd Simons
2004-11-21 10:41 ` Jeremy Huddleston

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.