Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!sunybcs!rocksvax!rochester!kodak!gardos From: gardos@kodak.UUCP (tom gardos) Newsgroups: net.unix,net.unix-wizards,net.micro.pc Subject: XENIX assmblr OUT - Device Driver Message-ID: <298@kodak.UUCP> Date: Wed, 9-Apr-86 16:04:18 EST Article-I.D.: kodak.298 Posted: Wed Apr 9 16:04:18 1986 Date-Received: Thu, 10-Apr-86 21:32:59 EST Reply-To: gardos@kodak.UUCP (tom gardos) Organization: Eastman Kodak Co., Rochester, NY Lines: 21 Keywords: out, in, I/O, XENIX device driver, assembler Xref: watmath net.unix:7590 net.unix-wizards:17530 net.micro.pc:7730 SYSTEM: IBM XENIX V1.0 running on the IBM AT, iAPX 286 microprocessor As some of you might have read earlier, I am trying to write an I/O routine in assembler using the IN and OUT assembler instructions. I have written this as a device driver and loaded it into the kernel. However, upon execution, I crash the system with a TRAP type (13) or hex D - which essentially states that the process doesn't have high enough priority level (I think). Shouldn't the priority be high enough since it is a device driver? Perhaps I am assembling my assembler source file wrong. I know for C source files, one must strip the stack probes and other such things. Could someone who has actually written a device driver in assembler or one in C that called an assembler function please let me know how they wrote it and compiled it? This is beginning to get frustrating! P.S. This isn't relevant but is there a way to read articles that have already been read? -- Tom Gardos