mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
Kernel: Use a constexpr declaration for the disabled PIC IRQ base
This commit is contained in:
parent
ab976667c4
commit
7028a64997
Notes:
sideshowbarker
2024-07-17 19:59:00 +09:00
Author: https://github.com/supercomputer7
Commit: 7028a64997
Pull-request: https://github.com/SerenityOS/serenity/pull/12182
Issue: https://github.com/SerenityOS/serenity/issues/12134
Reviewed-by: https://github.com/IdanHo ✅
Reviewed-by: https://github.com/Panky-codes
2 changed files with 4 additions and 1 deletions
|
@ -148,7 +148,7 @@ void PIC::complete_eoi() const
|
|||
void PIC::hard_disable()
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
remap(0x20);
|
||||
remap(pic_disabled_vector_base);
|
||||
IO::out8(PIC0_CMD, 0xff);
|
||||
IO::out8(PIC1_CMD, 0xff);
|
||||
m_cached_irq_mask = 0xffff;
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
#include <Kernel/Interrupts/IRQController.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
static constexpr size_t pic_disabled_vector_base = 0x20;
|
||||
|
||||
class PIC final : public IRQController {
|
||||
public:
|
||||
PIC();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue