From: acevest Date: Wed, 3 Nov 2021 08:23:43 +0000 (+0800) Subject: 貌似bochs模拟很慢,所以时钟中断改为10Hz X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.dnssec-dsfromkey.html?a=commitdiff_plain;h=fd4a1effafe66eb7b9ee057fbf3e2f5eefd369fc;p=kernel.git 貌似bochs模拟很慢,所以时钟中断改为10Hz --- diff --git a/kernel/setup.c b/kernel/setup.c index 3add536..e6a0c43 100644 --- a/kernel/setup.c +++ b/kernel/setup.c @@ -34,7 +34,7 @@ extern void reboot(); extern void cnsl_init(); extern void vga_init(); -#define HZ 100 +#define HZ 10 #define CLOCK_TICK_RATE 1193180 #define LATCH ((CLOCK_TICK_RATE + HZ / 2) / HZ) @@ -81,6 +81,7 @@ void setup_kernel() { setup_tasks(); setup_irqs(); + return; // switch_printk_screen();