327 |
|
// Setup SIGSEGV handler to process writes to frame buffer |
328 |
|
sigemptyset(&vosf_sa.sa_mask); |
329 |
|
vosf_sa.sa_handler = (void (*)(int)) Screen_fault_handler; |
330 |
+ |
#if !EMULATED_68K && defined(__NetBSD__) |
331 |
+ |
sigaddset(&vosf_sa.sa_mask, SIGALRM); |
332 |
+ |
vosf_sa.sa_flags = SA_ONSTACK; |
333 |
+ |
#else |
334 |
|
vosf_sa.sa_flags = 0; |
335 |
+ |
#endif |
336 |
|
return (sigaction(SIGSEGV, &vosf_sa, NULL) == 0); |
337 |
|
} |
338 |
|
#endif |
360 |
|
PFLAG_CLEAR(page); |
361 |
|
++page; |
362 |
|
} |
363 |
< |
|
363 |
> |
|
364 |
|
// Make the dirty pages read-only again |
365 |
|
const int32 offset = first_page << mainBuffer.pageBits; |
366 |
|
const uint32 length = (page - first_page) << mainBuffer.pageBits; |
398 |
|
uint8 * const p2 = &the_buffer_copy[j * bytes_per_row]; |
399 |
|
for (i = (VideoMonitor.x>>3) - 1; i > (x2>>3); i--) { |
400 |
|
if (p1[i] != p2[i]) { |
401 |
< |
x2 = i << 3; |
401 |
> |
x2 = (i << 3) + 7; |
402 |
|
break; |
403 |
|
} |
404 |
|
} |