X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Ftime.c;h=d4bda951e4270fdf04e343e4c08e3e2d171f0085;hb=c865bd1ebd2e33f0477f3f0145acb98786b1cc41;hp=ce77ee32a7e66306cd4a38a4d9c56c8113b94ff0;hpb=a7164ebcef521bd1abcd70f1716e894afd01520f;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/time.c b/Kernel/arch/x86/time.c index ce77ee32..d4bda951 100644 --- a/Kernel/arch/x86/time.c +++ b/Kernel/arch/x86/time.c @@ -28,9 +28,9 @@ volatile Uint64 giTime_TSCAtLastTick = 0; volatile Uint64 giTime_TSCPerTick = 0; // === PROTOTYPES === -Sint64 now(void); +//Sint64 now(void); int Time_Setup(void); -void Time_Interrupt(int); +void Time_Interrupt(int IRQ, void *Ptr); Uint64 Time_ReadTSC(void); // === CODE === @@ -83,7 +83,7 @@ int Time_Setup(void) outb(0x70, inb(0x70)|0x80); // Re-enable NMIs // Install IRQ Handler - IRQ_AddHandler(8, Time_Interrupt); + IRQ_AddHandler(8, Time_Interrupt, NULL); // Make sure the RTC actually fires outb(0x70, 0x0C); // Select register C @@ -96,7 +96,7 @@ int Time_Setup(void) * \brief Called on the timekeeping IRQ * \param irq IRQ number (unused) */ -void Time_Interrupt(int irq) +void Time_Interrupt(int IRQ, void *Ptr) { //Log("RTC Tick"); Uint64 curTSC = Time_ReadTSC();