From fd630a455299c01ec989804b0e68306dafb0503c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sun, 12 Oct 2008 22:52:51 +0000 Subject: [PATCH] Might work better with the interrupt handler... I should go to bed now. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28014 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/platform/atari_m68k/platform.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/platform/atari_m68k/platform.cpp b/src/system/kernel/platform/atari_m68k/platform.cpp index c3ae52a913..d5bd0aa39b 100644 --- a/src/system/kernel/platform/atari_m68k/platform.cpp +++ b/src/system/kernel/platform/atari_m68k/platform.cpp @@ -5,6 +5,7 @@ #include #include +#include #include @@ -13,7 +14,7 @@ //#include #include #include -#include +#include #include "debugger_keymaps.h" @@ -118,6 +119,8 @@ public: private: MFP *MFPForIrq(int irq); + static int32 MFPTimerInterrupt(void *data); + int fRTC; MFP *fMFP[2]; @@ -290,7 +293,7 @@ M68KAtari::InitTimer(struct kernel_args *kernelArgs) { out8(fMFP[0]->Base() + MFP_TACR, 0); // stop it - install_io_interrupt_handler(fMFP[0]->Vector()+13, &pit_timer_interrupt, NULL, 0); + install_io_interrupt_handler(fMFP[0]->Vector()+13, &MFPTimerInterrupt, fMFP[0], 0); return B_OK; } @@ -542,6 +545,12 @@ M68KAtari::MFPForIrq(int irq) return NULL; } +int32 +M68KAtari::MFPTimerInterrupt(void *data) +{ + return timer_interrupt(); +} + // static buffer for constructing the actual M68KPlatform static char *sM68KPlatformBuffer[sizeof(M68KAtari)];