Clean-up code a bit

This commit is contained in:
Jaby 2024-05-09 19:31:28 +02:00
parent 0618aa1fb7
commit afc594221c
2 changed files with 2 additions and 5 deletions

View File

@ -4,9 +4,8 @@
namespace JabyEngine {
namespace CD {
namespace internal {
extern State current_state;
extern CD_IO::Interrupt::Type last_interrupt;
extern uint8_t cmd_interrupt_bit;
extern State current_state;
extern uint8_t cmd_interrupt_bit;
struct Command {
static void wait_completed() {

View File

@ -16,7 +16,6 @@ namespace JabyEngine {
static uint32_t cur_lba;
static uint32_t dst_lba;
CD_IO::Interrupt::Type last_interrupt = CD_IO::Interrupt::Type::None;
uint8_t cmd_interrupt_bit = 0;
State current_state = State::Free;
SysCall::InterrupCallback callback = {
@ -84,7 +83,6 @@ namespace JabyEngine {
CD_IO::PortIndex1::change_to();
const auto cur_irq = CD_IO::Interrupt::get_type(CD_IO::PortIndex1::InterruptFlag);
last_interrupt = cur_irq;
CD_IO::Interrupt::ack_extended(CD_IO::PortIndex1::InterruptFlag);
cmd_interrupt_bit = bit::clear(cmd_interrupt_bit, cur_irq);