1 |
|
/* |
2 |
|
* timer_amiga.cpp - Time Manager emulation, AmigaOS specific stuff |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
20 |
|
|
21 |
|
#include <exec/types.h> |
22 |
|
#include <devices/timer.h> |
23 |
+ |
#define __USE_SYSBASE |
24 |
|
#include <proto/timer.h> |
25 |
|
#include <proto/intuition.h> |
26 |
+ |
#include <inline/timer.h> |
27 |
+ |
#include <inline/intuition.h> |
28 |
|
|
29 |
|
#include "sysdeps.h" |
30 |
|
#include "timer.h" |
54 |
|
|
55 |
|
uint32 TimerDateTime(void) |
56 |
|
{ |
57 |
< |
ULONG secs; |
55 |
< |
ULONG mics; |
57 |
> |
ULONG secs, mics; |
58 |
|
CurrentTime(&secs, &mics); |
59 |
< |
return secs + TIME_OFFSET; |
59 |
> |
return secs + 0x8b31ef80; |
60 |
|
} |
61 |
|
|
62 |
|
|
136 |
|
return -t; // Time in negative microseconds |
137 |
|
} |
138 |
|
} |
139 |
+ |
|
140 |
+ |
|
141 |
+ |
/* |
142 |
+ |
* Suspend emulator thread, virtual CPU in idle mode |
143 |
+ |
*/ |
144 |
+ |
|
145 |
+ |
void idle_wait(void) |
146 |
+ |
{ |
147 |
+ |
// XXX if you implement this make sure to call idle_resume() from TriggerInterrupt() |
148 |
+ |
} |
149 |
+ |
|
150 |
+ |
|
151 |
+ |
/* |
152 |
+ |
* Resume execution of emulator thread, events just arrived |
153 |
+ |
*/ |
154 |
+ |
|
155 |
+ |
void idle_resume(void) |
156 |
+ |
{ |
157 |
+ |
} |