diff options
author | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-06 17:23:05 +0000 |
---|---|---|
committer | andrewfish <andrewfish@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-01-06 17:23:05 +0000 |
commit | 9cf20bbf9a8d6c0322906fd982826a9452cb3ff8 (patch) | |
tree | a966d33c59179aa598325735475e07e6858df013 /EmulatorPkg | |
parent | 344b16e151eddb75c20621e190f9883c6dff4a08 (diff) | |
download | edk2-9cf20bbf9a8d6c0322906fd982826a9452cb3ff8.zip edk2-9cf20bbf9a8d6c0322906fd982826a9452cb3ff8.tar.gz edk2-9cf20bbf9a8d6c0322906fd982826a9452cb3ff8.tar.bz2 |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/EmulatorPkg/Unix/Host/Host.c b/EmulatorPkg/Unix/Host/Host.c index 8e1272d..7eecbce 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 |