From 3d75644e2c90fce47690d74818fea7c98e5fb278 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Wed, 3 Jun 2020 13:54:54 +0200 Subject: [PATCH] Add a call to BIOS int 15h AX EC00h before entering Long Mode in stivale proto --- qloader2.bin | Bin 32768 -> 32768 bytes src/lib/blib.c | 2 -- src/protos/stivale.c | 10 ++++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/qloader2.bin b/qloader2.bin index 39b12f50c355b9f41286a0fc683965f54418384f..eab9260fad66d3caee1852fc3ef4fa5f440d942a 100644 GIT binary patch delta 5467 zcma)AdstIfwm%z^7$BJV2qMqOQ$P?zP~m~3Kby_(!(p-zT^GZ+g4=uHszo~K?Ct*+lr&QIL{;yX3}aR0Mhb9O*L}n= zj6EMs7;8vLiCM!jI))KuMKMeRO6?~#^?2t`9KSEC=Cxfg%HFN6Zunmy_zwPi^&2N- z$Gc?>-NgJOy z$Fzf6|40ClBIC1q=}dXyaP-YO4Q_vfiWQ!qRK8jfgO;ySKSg%!KQa+prEYfg{v?Vl z+`qv)Hx*50W-v^}a`gd6AIKm?^?{w=0!7+cZUO3JL0`TU^vutL`kx2%6;d#uUs3^j z*^u53C>(D^{q^){hFM+?2Ff7=#el&!G-#opD>jf$x^UPs&D$XGDoaXP?sHUi(Idku ziJFd8&QSb>f?Qgqj8~+d1yVzKWfoaYKUPL5(_#8swM-YisnpG2fI0a3OF_&QO{-qi z*#*CR@x>s<+Sg*wmw}G4sOoV*tBu%#m^Cen`J47$rLad7MG50|)tE?+94+v7%6q^g z$6*8*@4HCT4FQIc=5%SjoHhNY5CIVBnShLGIBaP}WzQ%;1F^}-AGhaEKrD4#zaP|@ zzCABsz0Mij59|8Wh(Pr*H)-cdeIK0`m`3JPE-<1NRdF!HBku$14*Yv&`GdFodq6Ul zK#zRpt7No0vG=xYD;g}Rc2ZV6<>@EImy#&>6zqfFs>fk~|YL_Bn*@p~S|6nxp z&i%FMehqb+c6==i*r@PDWimYsmLh?b^elkHix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