Changeset 4874c2d in mainline for kernel/arch
- Timestamp:
- 2006-10-17T20:32:35Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b14e35f2
- Parents:
- 8513ad7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/src/drivers/cuda.c
r8513ad7 r4874c2d 64 64 static volatile uint8_t *cuda = NULL; 65 65 static irq_t cuda_irq; /**< Cuda's IRQ. */ 66 67 static ipc_notif_cfg_t saved_notif_cfg;68 69 66 70 67 static char lchars[0x80] = { … … 255 252 static void cuda_irq_handler(irq_t *irq, void *arg, ...) 256 253 { 257 if (irq->notif_cfg. answerbox)254 if (irq->notif_cfg.notify && irq->notif_cfg.answerbox) 258 255 ipc_irq_send_notif(irq); 259 256 else { … … 277 274 void cuda_grab(void) 278 275 { 279 if (cuda_irq.notif_cfg.answerbox) { 280 saved_notif_cfg = cuda_irq.notif_cfg; 281 cuda_irq.notif_cfg.answerbox = NULL; 282 cuda_irq.notif_cfg.code = NULL; 283 cuda_irq.notif_cfg.method = 0; 284 cuda_irq.notif_cfg.counter = 0; 285 } 276 cuda_irq.notif_cfg.notify = false; 286 277 } 287 278 … … 290 281 void cuda_release(void) 291 282 { 292 if ( saved_notif_cfg.answerbox)293 cuda_irq.notif_cfg = saved_notif_cfg;283 if (cuda_irq.notif_cfg.answerbox) 284 cuda_irq.notif_cfg.notify = true; 294 285 } 295 286
Note:
See TracChangeset
for help on using the changeset viewer.