Changeset 571cc2d in mainline for kernel/generic/src/console/console.c
- Timestamp:
- 2025-04-17T15:14:03Z (5 days ago)
- Branches:
- master
- Children:
- d5b37b6
- Parents:
- af77459
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-11 15:56:15)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-17 15:14:03)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
raf77459 r571cc2d 86 86 87 87 /** Kernel log spinlock */ 88 SPINLOCK_INITIALIZE_NAME(kio_lock, "kio_lock");88 IRQ_SPINLOCK_INITIALIZE(kio_lock); 89 89 90 90 /** Physical memory area used for kio buffer */ … … 254 254 return; 255 255 256 spinlock_lock(&kio_lock);256 irq_spinlock_lock(&kio_lock, true); 257 257 258 258 if (kio_notified != kio_written) { … … 261 261 } 262 262 263 spinlock_unlock(&kio_lock);263 irq_spinlock_unlock(&kio_lock, true); 264 264 } 265 265 … … 274 274 return; 275 275 276 spinlock_lock(&kio_lock);276 irq_spinlock_lock(&kio_lock, true); 277 277 278 278 /* Print characters that weren't printed earlier */ … … 286 286 * the character. 287 287 */ 288 spinlock_unlock(&kio_lock);288 irq_spinlock_unlock(&kio_lock, true); 289 289 stdout->op->write(stdout, tmp); 290 spinlock_lock(&kio_lock);291 } 292 293 spinlock_unlock(&kio_lock);290 irq_spinlock_lock(&kio_lock, true); 291 } 292 293 irq_spinlock_unlock(&kio_lock, true); 294 294 } 295 295 … … 308 308 bool ordy = ((stdout) && (stdout->op->write)); 309 309 310 spinlock_lock(&kio_lock);310 irq_spinlock_lock(&kio_lock, true); 311 311 kio_push_char(ch); 312 spinlock_unlock(&kio_lock);312 irq_spinlock_unlock(&kio_lock, true); 313 313 314 314 /* Output stored characters */
Note:
See TracChangeset
for help on using the changeset viewer.