From 8a066934569b76ffb5cd5ff51786b46002d217c3 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Mon, 29 Sep 2025 17:47:34 +0200 Subject: [PATCH] boot: prompt retry to load polio.com --- fat12boot.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fat12boot.c b/fat12boot.c index 633da70..69f56c8 100644 --- a/fat12boot.c +++ b/fat12boot.c @@ -47,8 +47,12 @@ static void loadpolmon() { die("fi"); } - if (fat12_readfile("POLMON COM", kPolmonAddress)) { - die("pnf"); + while (fat12_readfile("POLIO COM", kPolmonAddress)) { + asm volatile ( + "mov $00, %%ah \n\t" + "int $0x16 \n\t" + ::: "ax" + ); } jump(kPolmonAddress);