linux and assembly - blocking

1

does Linux block ports and interrupts for user programs use ?

oneat

Posted 2010-02-21T15:18:39.240

Reputation: 2 823

Question was closed 2012-07-19T01:58:12.717

Answers

1

The only interrupt a non-kernel program should be using is int 0x80, which is the interrupt to request one of the system calls listed in /usr/include/sys/syscall.h. If you want to directly interact with hardware interrupts, this should be done inside a kernel module. A good introduction to Assembly on a Linux system. This thread should also be useful for you.

Justin Smith

Posted 2010-02-21T15:18:39.240

Reputation: 3 746

As noted in the LinuxQuestions thread I linked to, a program like http://www.dosbox.com/ or http://www.dosemu.org/ will do the same interrupt emulation that windows provides for assembly programs (even with windows you are not really using interrupts, but getting pseudo-interrupts though an emulator).

– Justin Smith – 2010-02-21T15:41:04.187