Changeset 90dd8aee in mainline for kernel/generic/src/log/log.c


Ignore:
Timestamp:
2025-04-10T17:55:36Z (4 days ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master
Children:
8165a7a, c0d814a
Parents:
c55ab66
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-10 11:33:46)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2025-04-10 17:55:36)
Message:

Introduce a console lock to prevent line splitting in kernel output

It is a common occurrence to see broken lines on screen or in serial
output due to bad timing. This is an attempt to prevent that without
breaking anything.

It could be considered a stopgap solution, since the whole console
stack deserves a better/faster implementation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/log/log.c

    rc55ab66 r90dd8aee  
    151151void log_begin(log_facility_t fac, log_level_t level)
    152152{
     153        console_lock();
    153154        spinlock_lock(&log_lock);
    154155        spinlock_lock(&kio_lock);
     
    186187        kio_update(NULL);
    187188        log_update(NULL);
     189        console_unlock();
    188190}
    189191
Note: See TracChangeset for help on using the changeset viewer.