Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-21-2010, 04:47 PM   #1
LQ Newbie
Registered: Sep 2010
Posts: 6

Rep: Reputation: 0
How to write The clock interrupt

The clock interrupt will display the seconds that have elapsed since the boot process.
The following figure shows the expected result with the time displayed in a fixed place on the screen.
To write an interrupt such as the clock interrupt (that is, a masked type), you must:
Initialize the IDT as you did for the exceptions. The clock interrupt is contained
in entry 32.
Write the handler.
Write the service routine.
Enable the interrupt. The clock interrupt is a masked interrupt that is disabled
in the code provided, which means that it is not dealt with. In this delivery,
modify the mask that enables the interrupts, located in the enable_int()
routine (file hardware.c).

but i am not know how to do this, have someone can help?thanks a lot
Old 09-21-2010, 05:16 PM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,117

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
This looks like "homework" for an educational course you are doing.

Please read the LQ Rules

We are not allowed to help you with "homework", unless you can show us that you have done some basic research for yourself first.

If you do not understand this question, or know how to find the answer to it, then you should ask your teacher, not us.
Old 09-21-2010, 06:49 PM   #3
LQ Newbie
Registered: Sep 2010
Posts: 6

Original Poster
Rep: Reputation: 0
this is not a homework, just the project, also we not have so much time chat with teacher, coz for me is first time to do this, i have some question wanna to ask,if you think this is basic , yes i am very basic for this region, if you think stupid, you no need to help me
Old 09-21-2010, 07:09 PM   #4
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,896

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
This is the specific homework assignment that the OP wants help with:

Sorry, but we're not taking or teaching the course. We can't help you.

Last edited by dugan; 09-21-2010 at 07:16 PM.
Old 09-22-2010, 01:48 AM   #5
Senior Member
Registered: Dec 2008
Posts: 4,710
Blog Entries: 29

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Check out the following links:

and following pdf has something related to timer interrupts, check that too:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Read and write the HW clock raghu437 Linux - Newbie 5 03-18-2010 03:38 AM
control is not going to interrupt handler when interrupt remyasj Member Intro 1 11-12-2009 01:56 AM
How to write a keyboard driver read and interrupt functions? sunr2007 Programming 1 01-13-2009 09:38 AM
control is not going to interrupt handler when interrupt comes in serial driver sateeshalla Linux - Kernel 1 05-04-2006 10:43 AM
clock interrupt kapsikum Programming 1 03-17-2005 03:51 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:57 AM.

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