home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!rpi!utcsri!helios.physics.utoronto.ca!grindley
- From: grindley@helios.physics.utoronto.ca (Robin Grindley)
- Subject: ?? Why no out/in in assembler ??
- Message-ID: <C1DpM9.H6L@helios.physics.utoronto.ca>
- Sender: news@helios.physics.utoronto.ca (News Administrator)
- Organization: University of Toronto Physics/Astronomy/CITA
- Date: Sun, 24 Jan 1993 22:10:56 GMT
- Lines: 23
-
- I am trying to write a small program to allow me to output and input values
- to the serial port (for testing something on my mouse). I tried writing
- inline assembly code, but it says there are no such instructions as in/out.
- So i figured i would see how the kernel did it, but it uses outb routines,
- which don't exist anywhere. The only way they get resolved is to compile
- -O6, then they disappear! What is this garbage?
-
- So firstly, why are there no port I/O assembler commands available, and
- secondly, if we have to rely on psychotic (read non-standard) compile
- switches, then could someone at least tell me where to find documentation
- on this stuff? (I can not find anything documenting gcc beyond the man page.
- I would like these odd switches and __asm__ syntax explained.)
-
- By the way, i assume one of the developers has already written such a port
- I/O testing program, but i would rather learn how the system works by
- doing/writing it myself.
-
- robin
- --
- robin
-
- iNSANITY - It's only a state of mind
-
-