Repos / kernel.git / commitdiff
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c8048a4)
raw | patch | inline | side by side (parent: c8048a4)
| author | zhaoyanbai <zhaoyanbai@126.com> | |
| Tue, 17 Sep 2024 02:54:05 +0000 (10:54 +0800) | ||
| committer | zhaoyanbai <zhaoyanbai@126.com> | |
| Tue, 17 Sep 2024 02:54:05 +0000 (10:54 +0800) |
| include/system.h | patch | blob | history | |
| kernel/clock.c | patch | blob | history | |
| kernel/i8259.c | patch | blob | history |
diff --git a/include/system.h b/include/system.h
--- a/include/system.h
+++ b/include/system.h
extern volatile int reenter;
-#define DEFAULT_BOOT_DELAY_TICKS 30
+#define DEFAULT_BOOT_DELAY_TICKS 300
void boot_delay(int ticks);
#endif
diff --git a/kernel/clock.c b/kernel/clock.c
--- a/kernel/clock.c
+++ b/kernel/clock.c
// 后续放到一个内核任务中去做,需要先把禁止内核抢占做了
const char *task_state(unsigned int state);
void clk_bh_handler(void *arg) {
+
task_t *p = 0;
list_head_t *t = 0;
list_head_t *pos = 0;
diff --git a/kernel/i8259.c b/kernel/i8259.c
--- a/kernel/i8259.c
+++ b/kernel/i8259.c
// ...
#else
// Specific EOI to slave
- outb(0x60 + (irq & 0x07), PIC_SLAVE_CMD);
+ outb(0x20 + (irq & 0x07), PIC_SLAVE_CMD);
// Specific EOI to master
- outb(0x60 + (PIC_CASCADE_IR & 0x07), PIC_MASTER_CMD);
+ outb(0x20 + (PIC_CASCADE_IR & 0x07), PIC_MASTER_CMD);
#endif
} else // Master
{
// ...
#else
// Specific EOI to master
- outb(0x60 + irq, PIC_MASTER_CMD);
+ outb(0x20 + irq, PIC_MASTER_CMD);
#endif
}
}
// ...
#else
// Specific EOI to slave
- outb(0x60 + (irq & 0x07), PIC_SLAVE_CMD);
+ outb(0x20 + (irq & 0x07), PIC_SLAVE_CMD);
// Specific EOI to master
- outb(0x60 + (PIC_CASCADE_IR & 0x07), PIC_MASTER_CMD);
+ outb(0x20 + (PIC_CASCADE_IR & 0x07), PIC_MASTER_CMD);
#endif
} else // Master
{
// ...
#else
// Specific EOI to master
- outb(0x60 + irq, PIC_MASTER_CMD);
+ outb(0x20 + irq, PIC_MASTER_CMD);
#endif
}
}