ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/video_x.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/video_x.cpp (file contents):
Revision 1.37 by cebix, 2001-03-06T18:41:12Z vs.
Revision 1.38 by gbeauche, 2001-05-20T20:31:50Z

# Line 53 | Line 53
53   #endif
54  
55   #ifdef ENABLE_VOSF
56 # include <unistd.h>
57 # include <signal.h>
56   # include <fcntl.h>
57   # include <sys/mman.h>
58 + # include "sigsegv.h"
59   #endif
60  
61   #include "cpu_emulation.h"
# Line 278 | Line 277 | static inline int find_next_page_clear(i
277   }
278  
279   static int zero_fd = -1;
281 static bool Screen_fault_handler_init();
282 static struct sigaction vosf_sa;
280  
281   #ifdef HAVE_PTHREADS
282   static pthread_mutex_t vosf_lock = PTHREAD_MUTEX_INITIALIZER;   // Mutex to protect frame buffer (dirtyPages in fact)
# Line 1172 | Line 1169 | bool VideoInit(bool classic)
1169                  }
1170  
1171                  // Initialize the handler for SIGSEGV
1172 <                if (!Screen_fault_handler_init()) {
1172 >                if (!sigsegv_install_handler(screen_fault_handler)) {
1173                          // TODO: STR_VOSF_INIT_ERR ?
1174                          ErrorAlert("Could not initialize Video on SEGV signals");
1175                          return false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines