]> Zhao Yanbai Git Server - kernel.git/commitdiff
authorzhaoyanbai <zhaoyanbai@126.com>
Sun, 4 Jun 2023 09:01:01 +0000 (17:01 +0800)
committerzhaoyanbai <zhaoyanbai@126.com>
Sun, 4 Jun 2023 09:01:01 +0000 (17:01 +0800)
Makefile
boot/boot.c

index 5f727f7..1712475 100644 (file)
--- 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
index 6652611..be40f97 100644 (file)
@@ -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();