diff options
author | Conrad Pankoff <deoxxa@fknsrs.biz> | 2019-08-12 21:32:28 +1000 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-12 14:15:24 +0200 |
commit | 4b44962e030f6e3abf6bfc82fbf8382884d92504 (patch) | |
tree | 95f91b8a15ccc303369a6a935bba687e93288227 /DevTools | |
parent | ce8387d1ed001aae593c934e1119705525b51d85 (diff) | |
download | serenity-4b44962e030f6e3abf6bfc82fbf8382884d92504.zip |
Kernel: Use a CircularQueue for input rather than a DoubleBuffer
TTY::emit is called from an IRQ handler, and is used to push input data
into a buffer for later retrieval. Previously this was using DoubleBuffer,
but that class wants to take a lock. Our lock code wants to make sure
interrupts are enabled, but they're disabled while an IRQ handler is
running. This made the kernel sad, but this CircularQueue cheers it up by
avoiding the lock requirement completely.
Diffstat (limited to 'DevTools')
0 files changed, 0 insertions, 0 deletions