From 5ebfdafc68c2f6b19de7540756887c6e9d0f8aaf Mon Sep 17 00:00:00 2001 From: Yourtion Date: Thu, 21 Apr 2016 11:10:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 13_day/bootpack.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/13_day/bootpack.c b/13_day/bootpack.c index ac20b43..18cd32c 100644 --- a/13_day/bootpack.c +++ b/13_day/bootpack.c @@ -30,8 +30,7 @@ void HariMain(void) enable_mouse(&fifo, 512, &mdec); io_out8(PIC0_IMR, 0xf8); /* 设定PIT和PIC1以及键盘为许可(11111000) */ io_out8(PIC1_IMR, 0xef); /* 开放鼠标中断(11101111) */ - - set490(&fifo,1); + timer = timer_alloc(); timer_init(timer, &fifo, 10); timer_settime(timer, 1000); @@ -196,16 +195,3 @@ void putfonts8_asc_sht(struct SHEET *sht, int x, int y, int c, int b, char *s, i sheet_refresh(sht, x, y, x + l * 8, y + 16); return; } - -void set490(struct FIFO32 *fifo, int mode){ - int i; - struct TIMER *timer; - if (mode != 0) { - for (i = 0; i < 490; i++) { - timer = timer_alloc(); - timer_init(timer, fifo, 1024 + i); - timer_settime(timer, 100 * 60 * 60 * 24 * 50 + i * 100); - } - } - return; -}