Subject: Re: Xarm32VIDC Problem?
To: Dave Daniels <dave_daniels@argonet.co.uk>
From: Richard Earnshaw <rearnsha@buzzard.freeserve.co.uk>
List: port-arm32
Date: 02/22/2001 22:05:34
This is a multipart MIME message.

--==_Exmh_9471259280
Content-Type: text/plain; charset=us-ascii

And a third... ;-(

Note that in this case, the whole switch is at spltty().



--==_Exmh_9471259280
Content-Type: application/x-patch ; name="pms.patch"
Content-Description: pms.patch
Content-Disposition: attachment; filename="pms.patch"

Index: pms.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/arm32/dev/pms.c,v
retrieving revision 1.21
diff -p -p -r1.21 pms.c
*** pms.c	2000/03/23 06:35:14	1.21
--- pms.c	2001/02/22 22:03:20
*************** pmsioctl(dev, cmd, addr, flag, p)
*** 421,431 ****
  	case MOUSEIOC_SETMODE:
  	{
  		struct mousebufrec buffer;
- #ifdef MOUSE_IOC_ACK
- 		int s;
- 
- 		s = spltty();
- #endif
  		sc->sc_mode = *(int *)addr;
  
  		buffer.status = IOC_ACK;
--- 421,426 ----
*************** pmsioctl(dev, cmd, addr, flag, p)
*** 436,444 ****
  			printf("%s: setting mode with non empty buffer (%d)\n",
  			    sc->sc_dev.dv_xname, sc->sc_q.c_cc);
  		pmsputbuffer(sc, &buffer);
- 		(void)splx(s);
  #endif
! 		return 0;
  	}
  	case MOUSEIOC_SETORIGIN:
  	{
--- 431,438 ----
  			printf("%s: setting mode with non empty buffer (%d)\n",
  			    sc->sc_dev.dv_xname, sc->sc_q.c_cc);
  		pmsputbuffer(sc, &buffer);
  #endif
! 		break;
  	}
  	case MOUSEIOC_SETORIGIN:
  	{

--==_Exmh_9471259280--