real time clock interrupt issue

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Luca83
Posts: 4
Joined: Tue Dec 27, 2011 8:51 am

real time clock interrupt issue

Post by Luca83 »

Hi,
I've my own OS for x86 arch.
I use a DOS program to prepare MBR and copy OS to HDD. In my system I also have a watchdog board so this program, during boot time, refreshes WD timer until OS starts execution.
This utility works well on Intel Pentium M CPU board. If I try to use it on a new Intel Atom or Intel Core i7 CPU boards it has a strange behaviour.

In details the program assigns my own ISR to IRQ 8 line interrupt call (reserved by BIOS to onboard RTC) with a simple call:
_dos_setvect (0x70, myOwnHandler);

The ISR works fine. The watchdog board is correctly refreshed...

... but during the copy of files from usb to hard disk and then from hard disk to usb pen (for check purpose) the ISR is not served and the watchdog turns-off.

Can you help me?

Thanks.

Context:

C program (MS VS compiler), DOS, CPU Intel Atom, SSD (solid state disk), USB 2.0

Note:

Pentium M board has IDE HDD. Atom board has SATA SSD (compatibility mode selected in BIOS).
Last edited by Luca83 on Thu Jun 07, 2012 6:33 am, edited 1 time in total.
User avatar
Griwes
Member
Member
Posts: 374
Joined: Sat Jul 30, 2011 10:07 am
Libera.chat IRC: Griwes
Location: Wrocław/Racibórz, Poland
Contact:

Re: real time clock interrupt issue

Post by Griwes »

Reaver Project :: Repository :: Ohloh project page
<klange> This is a horror story about what happens when you need a hammer and all you have is the skulls of the damned.
<drake1> as long as the lock is read and modified by atomic operations
Luca83
Posts: 4
Joined: Tue Dec 27, 2011 8:51 am

Re: real time clock interrupt issue

Post by Luca83 »

Thanks for reporting the typo.
Of course I referred to solid state disk... SSD.
Post Reply