Kernel: getproc() should not enable interrupts if it is called from
authorWill Sowerbutts <will@sowerbutts.com>
Tue, 13 Jan 2015 20:28:19 +0000 (20:28 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Tue, 13 Jan 2015 20:49:16 +0000 (20:49 +0000)
commite33ec11d9287ba4ad5cb59a26c5c87d487410d73
treebda5aa9c734a02014a8a2c0451a9478c063542ce
parentf0f7ad621abab37f8beb41a1f2128ba113183699
Kernel: getproc() should not enable interrupts if it is called from
within an interrupt handler because we cannot handle any interrupts that
arrive as a result. Enable interrupts only when no process is ready,
which is obviously never the case when we're preempting a process from
within a timer interrupt. The kernel will also panic if we're about to
enable interrupts in getproc() when we're already handling one.
Kernel/process.c