summaryrefslogtreecommitdiff
path: root/EmulatorPkg
diff options
context:
space:
mode:
authorandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-06 17:23:05 +0000
committerandrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-06 17:23:05 +0000
commit9cf20bbf9a8d6c0322906fd982826a9452cb3ff8 (patch)
treea966d33c59179aa598325735475e07e6858df013 /EmulatorPkg
parent344b16e151eddb75c20621e190f9883c6dff4a08 (diff)
downloadedk2-topics-9cf20bbf9a8d6c0322906fd982826a9452cb3ff8.tar.gz
Add an error print and exit if SEC core is not found.
signed-off-by: andrewfish git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12912 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EmulatorPkg')
-rw-r--r--EmulatorPkg/Unix/Host/Host.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/EmulatorPkg/Unix/Host/Host.c b/EmulatorPkg/Unix/Host/Host.c
index 8e1272d4e..7eecbceaa 100644
--- a/EmulatorPkg/Unix/Host/Host.c
+++ b/EmulatorPkg/Unix/Host/Host.c
@@ -287,6 +287,12 @@ main (
printf ("\n");
}
+
+ if (SecFile == NULL) {
+ printf ("ERROR : SEC not found!\n");
+ exit (1);
+ }
+
//
// Calculate memory regions and store the information in the gSystemMemory
// global for later use. The autosizing code will use this data to