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

Comparing BasiliskII/src/BeOS/main_beos.cpp (file contents):
Revision 1.9 by cebix, 2001-06-30T17:21:53Z vs.
Revision 1.11 by cebix, 2001-10-07T19:50:20Z

# Line 469 | Line 469 | void FlushCodeCache(void *start, uint32
469  
470  
471   /*
472 + *  Mutexes
473 + */
474 +
475 + struct B2_mutex {
476 +        int dummy;      //!!
477 + };
478 +
479 + B2_mutex *B2_create_mutex(void)
480 + {
481 +        return new B2_mutex;
482 + }
483 +
484 + void B2_lock_mutex(B2_mutex *mutex)
485 + {
486 + }
487 +
488 + void B2_unlock_mutex(B2_mutex *mutex)
489 + {
490 + }
491 +
492 + void B2_delete_mutex(B2_mutex *mutex)
493 + {
494 +        delete mutex;
495 + }
496 +
497 +
498 + /*
499   *  Interrupt flags (must be handled atomically!)
500   */
501  
# Line 523 | Line 550 | status_t BasiliskII::tick_func(void *arg
550  
551   status_t BasiliskII::xpram_func(void *arg)
552   {
553 <        uint8 last_xpram[256];
554 <        memcpy(last_xpram, XPRAM, 256);
553 >        uint8 last_xpram[XPRAM_SIZE];
554 >        memcpy(last_xpram, XPRAM, XPRAM_SIZE);
555  
556          while (((BasiliskII *)arg)->xpram_thread_active) {
557                  snooze(60*1000000);
558 <                if (memcmp(last_xpram, XPRAM, 256)) {
559 <                        memcpy(last_xpram, XPRAM, 256);
558 >                if (memcmp(last_xpram, XPRAM, XPRAM_SIZE)) {
559 >                        memcpy(last_xpram, XPRAM, XPRAM_SIZE);
560                          SaveXPRAM();
561                  }
562          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines