home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25335 < prev    next >
Encoding:
Text File  |  1993-01-24  |  1.5 KB  |  34 lines

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