//Set the new clock interrupt (replace with our function) //id=InterruptAttach(SYSPAGE_ENTRY(qtime)->intr, &handler, NULL, 0, 0 ); //Set mode 0 for interrupt out8(0x43, 0x36); // Load new interrupt count value // This will be the actual value written to the register unsigned short l_count = (unsigned short)(65536.f / mClock.total); out8(0x40, (mCount & 0x0FF)); out8(0x40, ((mCount >> 8) & 0x0FF)); InterruptEnable();
Well, when i use this interrupt and try to play with the frequency of the clock etc … i see that the system time (computer time) seems to be affected.
The other Interrupt Vectore I could possibly use is the 1CH (TimerTick).
Am i correct ? Also how do i attach an interrupt vector with the vectore adrress 1CH using the function InterruptAttach().
I would appreciate quick responses.