75 |
|
# include "mon.h" |
76 |
|
#endif |
77 |
|
|
78 |
< |
#define DEBUG 1 |
78 |
> |
#define DEBUG 0 |
79 |
|
#include "debug.h" |
80 |
|
|
81 |
|
|
104 |
|
|
105 |
|
|
106 |
|
// Global variables |
107 |
< |
static char *x_display_name = NULL; // X11 display name |
107 |
> |
char *x_display_name = NULL; // X11 display name |
108 |
|
Display *x_display = NULL; // X11 display handle |
109 |
|
|
110 |
|
static int zero_fd = -1; // FD of /dev/zero |
111 |
– |
static bool lm_area_mapped = false; // Flag: Low Memory area mmap()ped |
111 |
|
static uint8 last_xpram[256]; // Buffer for monitoring XPRAM changes |
112 |
|
|
113 |
|
#ifdef HAVE_PTHREADS |
148 |
|
static void sigint_handler(...); |
149 |
|
#endif |
150 |
|
|
151 |
+ |
#if REAL_ADDRESSING |
152 |
+ |
static bool lm_area_mapped = false; // Flag: Low Memory area mmap()ped |
153 |
+ |
#endif |
154 |
+ |
|
155 |
|
#ifdef USE_MAPPED_MEMORY |
156 |
|
extern char *address_space, *good_address_map; |
157 |
|
#endif |
711 |
|
// Pseudo Mac 1Hz interrupt, update local time |
712 |
|
WriteMacInt32(0x20c, TimerDateTime()); |
713 |
|
|
714 |
+ |
SetInterruptFlag(INTFLAG_60HZ); |
715 |
+ |
TriggerInterrupt(); |
716 |
+ |
|
717 |
|
#ifndef HAVE_PTHREADS |
718 |
|
static int second_counter = 0; |
719 |
|
if (++second_counter > 60) { |