From 87b9e5b73dca6ba08b1582bacb6dc9a3248c3555 Mon Sep 17 00:00:00 2001 From: acevest Date: Sun, 4 Jun 2023 17:01:01 +0800 Subject: [PATCH] =?utf8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A7=E5=88=B6boot?= =?utf8?q?=E9=98=B6=E6=AE=B5=E6=98=AF=E5=90=A6=E5=BC=95=E5=85=A5=E7=AD=89?= =?utf8?q?=E5=BE=85=E7=9A=84=E6=8E=A7=E5=88=B6=E5=AE=8F:ENABLE=5FBOOT=5FWA?= =?utf8?q?IT?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Makefile | 1 + boot/boot.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 5f727f7..1712475 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ endif CFLAGS = -g -c -fno-builtin -m32 -DBUILDER='"$(shell whoami)"' CFLAGS += -DFIX_SYSENTER_ESP_MODE=1 +#CFLAGS += -DENABLE_BOOT_WAIT=1 SYSTEMMAP = System.map KERNELBIN = KERNEL.BIN LINKSCRIPT = scripts/link.ld diff --git a/boot/boot.c b/boot/boot.c index 6652611..be40f97 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -24,6 +24,7 @@ void init_vbe(void *, void *); // ticks < 0 代表永远等待 void boot_delay(int ticks) { +#if ENABLE_BOOT_WAIT char chs[] = {'\\', '-', '/', '-'}; uint32_t cnt = 0; @@ -43,6 +44,7 @@ void boot_delay(int ticks) { } asm("cli;"); printk("\b \b"); +#endif } void init_ttys(); -- 2.44.0