LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 09-21-2010, 03:45 PM   #1
cklckl48
LQ Newbie
 
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
Exclamation IDT question


Hello everyone i also have one things not understand as follow:

To initialize the IDT, the following function is provided:
setInterruptHandler(int position, void (*handler)(), int privLevel)
The parameters required to write the exception are:
• int position. Entry in the IDT.
• void (*handler)(). Address of the handler that will handle the exception4.
• int privLevel. Privilege level to be accessed. There are two possibilities:
0 to Kernel, 3 to User. Decide the privilege level of the code that generates an exception.

Hope your can help me , how to write this code?
 
Old 09-28-2010, 10:24 PM   #2
mf93
Member
 
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
I would recommend writing the IDT in assembly language- here is a good tutorial
http://www.osdever.net/tutorials/vie...ts-part-3-idts
 
Old 09-29-2010, 12:25 AM   #3
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Check out the following:
http://www.zanshu.com/ebook/143_orei...dition/033.htm
and
http://stackoverflow.com/questions/2...scriptor-table
 
  


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
reprogramming the x86 IDT irey Programming 3 11-07-2010 01:49 PM
no sound using IDT HDA on-board sound in ubuntu 9.10 ZeroClass Ubuntu 9 05-04-2010 09:10 AM
Linux IDT where are free, unused interrupts, IRQs bastl Programming 2 01-08-2010 05:40 PM
Alienware M17x - no sound with most distros. IDT 92HD73C1X5 chip. Ethrem Linux - Laptop and Netbook 14 12-02-2009 04:16 AM
NO sound with INTEL HDA (IDT codec) on HP DV4t-1000 TJ13820 Linux - Hardware 12 05-22-2009 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:13 PM.

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