[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Kommentar til begynderprogram?



Jaja, men i følge "man ioperm" gælder det kun for "root" og kun for porte op til 0x3ff.

/ Søren

Rasmus Andersen wrote:

On Mon, Sep 29, 2003 at 10:08:20AM +0200, Robert Larsen wrote:


Hans Schou wrote:



Når jeg kører programmet lyser en af dioderne. Hvis jeg ændrer linie
9 til outb(0, BASEPORT); så slukker den istedet.




Øhhh, kan man virkelig det? Jeg troede ikke man kunne skrive direkte til I/O under Linux, som man kan under DOS. Måske er det noget specielt når det er lpt-porten.



Jo deeeet.....hvis du mener UDEN om kernen så har du ret. Det kan man ikke. Al kommunikation med parallelporten sker gennem kald til kernen.



?? Det originale program lavede da netop direkte bit-banging efter at have sikret sig rettigheder til at goere det. Havde [original afsender] haft lyst kunne han have kodet outb i asm og stadig kunnet. SVJV. Efter kald til ioperm/iopl kan man faa lov til det meste.

Ovenstaaende _mener_ jeg er korrekt :)

Rasmus







 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *