Repos / kernel.git / commitdiff
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d967395)
raw | patch | inline | side by side (parent: d967395)
| author | zhaoyanbai <zhaoyanbai@126.com> | |
| Sun, 4 Jun 2023 09:01:01 +0000 (17:01 +0800) | ||
| committer | zhaoyanbai <zhaoyanbai@126.com> | |
| Sun, 4 Jun 2023 09:01:01 +0000 (17:01 +0800) |
| Makefile | patch | blob | history | |
| boot/boot.c | patch | blob | history |
diff --git a/Makefile b/Makefile
--- a/Makefile
+++ b/Makefile
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
--- a/boot/boot.c
+++ b/boot/boot.c
// ticks < 0 代表永远等待
void boot_delay(int ticks) {
+#if ENABLE_BOOT_WAIT
char chs[] = {'\\', '-', '/', '-'};
uint32_t cnt = 0;
}
asm("cli;");
printk("\b \b");
+#endif
}
void init_ttys();