aboutsummaryrefslogtreecommitdiffstats
path: root/com32/mboot/mboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/mboot/mboot.c')
-rw-r--r--com32/mboot/mboot.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/com32/mboot/mboot.c b/com32/mboot/mboot.c
index b1b2c77a..7103b3a3 100644
--- a/com32/mboot/mboot.c
+++ b/com32/mboot/mboot.c
@@ -185,6 +185,9 @@ int main(int argc, char *argv[])
return 1; /* Failure */
}
+ if (init_map())
+ return 1; /* Failed to allocate intitial map */
+
/*
* Map the primary image. This should be done before mapping anything
* else, since it will have fixed address requirements.