Changeset 712c4ba in mainline for kernel/genarch/src/fb/fb.c
- Timestamp:
- 2011-05-20T16:09:24Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b6f3e7e
- Parents:
- 326bf65
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/genarch/src/fb/fb.c
r326bf65 r712c4ba 80 80 81 81 typedef struct { 82 SPINLOCK_DECLARE(lock);82 mutex_t mtx; 83 83 84 84 uint8_t *addr; … … 365 365 { 366 366 fb_instance_t *instance = (fb_instance_t *) dev->data; 367 spinlock_lock(&instance->lock);367 mutex_lock(&instance->mtx); 368 368 369 369 switch (ch) { … … 406 406 cursor_put(instance, silent); 407 407 408 spinlock_unlock(&instance->lock);408 mutex_unlock(&instance->mtx); 409 409 } 410 410 … … 473 473 fb_instance_t *instance = (fb_instance_t *) dev->data; 474 474 475 spinlock_lock(&instance->lock);475 mutex_lock(&instance->mtx); 476 476 fb_redraw_internal(instance); 477 spinlock_unlock(&instance->lock);477 mutex_unlock(&instance->mtx); 478 478 } 479 479 … … 554 554 fbdev->data = instance; 555 555 556 spinlock_initialize(&instance->lock, "*fb.instance.lock");556 mutex_initialize(&instance->mtx, MUTEX_PASSIVE); 557 557 instance->rgb_conv = rgb_conv; 558 558 instance->pixelbytes = pixelbytes;
Note:
See TracChangeset
for help on using the changeset viewer.