aboutsummaryrefslogtreecommitdiffstats
path: root/core/localboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/localboot.c')
-rw-r--r--core/localboot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/localboot.c b/core/localboot.c
index a4df9171..39ffc8cb 100644
--- a/core/localboot.c
+++ b/core/localboot.c
@@ -57,6 +57,7 @@ __export void local_boot(int16_t ax)
* Load boot sector from the specified BIOS device and jump to
* it.
*/
+ memset(&ireg, 0, sizeof ireg);
ireg.edx.b[0] = ax & 0xff;
ireg.eax.w[0] = 0; /* Reset drive */
__intcall(0x13, &ireg, NULL);