This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problems with _inpw / STATUS_PRIVILEGED_INSTRUCTION



Hi there!

I am porting C-sources for the control of an external device
(CCD-camera) to
cygwin. Unfortunately some problems appeared.

The executable file terminates with the message:

1084 (0) handle_exeptions: STATUS_PRIVILEGED_INSTRUCTION

I have located the point where this exception appears:

 /* attempt to clear the trigger enable bit at the target address */
  tmpval = INPW(base+0x008);
  tmpval &= 0xffdf;                   /* clear trigger bit            */

INPW is defined as follows:

#define INPW(a)  (USHORT)_inpw ((USHORT)(a))

I would be very happy if anybody brings light on this problem.

Thank you very much,

Christian Hirt

--
hirt@mbox.ife.uni-hannover.de



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]