diff --git a/src/sys/sys/idt.c b/src/sys/sys/idt.c index 932833c..51f9b4a 100644 --- a/src/sys/sys/idt.c +++ b/src/sys/sys/idt.c @@ -390,34 +390,34 @@ __asm__( ".globl timerInt \n" "timerInt: \n" - " pushl %edx \n" + " pushl %edx \n" /* Push Register That We Are Going To Touch */ " pushl %ecx \n" " pushl %ebx \n" " pushl %eax \n" - " movl systemVitals,%ecx \n" - " incl 4(%ecx) \n" - " mov $0x20,%dx \n" + " movl systemVitals,%ecx \n" /* Put Location Of System Vitals Into ECX */ + " incl 4(%ecx) \n" /* Increment sysTicks our 1000ms counter */ + " mov $0x20,%dx \n" /* The Following Sends Our EOI To The MPIC */ " mov $0x20,%ax \n" " outb %al,%dx \n" - " mov $0xA0,%dx \n" + " mov $0xA0,%dx \n" /* The Following Sends Our EOI To The SPID */ " outb %al,%dx \n" - " movl 4(%ecx),%eax \n" - " movl $1000,%ebx \n" + " movl 4(%ecx),%eax \n" /* Increment our sysUptime by 1S if 1000MS */ + " movl $1000,%ebx \n" /* Have Passed */ " xor %edx,%edx \n" " div %ebx \n" " test %edx,%edx \n" " jnz next \n" " incl 8(%ecx) \n" "next: \n" - " movl 4(%ecx),%eax \n" - " movl 12(%ecx),%ebx \n" + " movl 4(%ecx),%eax \n" /* Test If quantum Has Passed If So Then */ + " movl 12(%ecx),%ebx \n" /* We Can CALL sched */ " xor %edx,%edx \n" " div %ebx \n" " test %edx,%edx \n" " jnz done \n" " call sched \n" "done: \n" - " popl %eax \n" + " popl %eax \n" /* Restore Register And IRET */ " popl %ebx \n" " popl %ecx \n" " popl %edx \n" @@ -466,6 +466,10 @@ /*** $Log$ + Revision 1.12 2004/06/16 12:04:19 reddawg + systemVitals->quantum = (1000/msPerQuantum) + The timer int now will call scheduler at the rate of the defined quantum + Revision 1.11 2004/06/15 12:14:38 reddawg Cleaned Up