LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-29-2003, 07:30 AM   #1
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
a simple question about interrupts


in DOS,you call CPU registers like int86(.........).what is the eqivalent in linux??in which header file??
 
Old 08-29-2003, 07:54 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
if your trying to call a bios interrupt you cant, when the kernel enters protected mode it takes the first 32(i think) interrupts for the cpu so the bios interrupts that were there like 0x10(vga) arnt accessable. obviously the 0x21 interrupt was provided by dos and isnt there either.

the kernel syscalls are accessable by int 0x80 and are listed in /usr/src/asm/unistd.h but are all available through glibc.

if you desperatly need to call an interrupt from C although i cant imagine why, then you could just do a bit of inline assembly.
 
Old 08-29-2003, 08:07 AM   #3
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Original Poster
Rep: Reputation: 30
thanks for the information.that was what i was looking for.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
breaking out of accept() with interrupts (socket question) hatha Programming 1 07-16-2005 05:33 AM
about interrupts eshwar_ind Programming 1 02-25-2004 12:38 AM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 04:08 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration