X-Git-Url: https://git.saurik.com/apple/boot.git/blobdiff_plain/14c7c974991c850bfa0348affbd4bee3223205ee..refs/heads/master:/gen/libsaio/stringTable.c diff --git a/gen/libsaio/stringTable.c b/gen/libsaio/stringTable.c index 66f10e9..0430eb4 100644 --- a/gen/libsaio/stringTable.c +++ b/gen/libsaio/stringTable.c @@ -27,10 +27,9 @@ */ #import "libsaio.h" -#import "kernBootStruct.h" +#import "bootstruct.h" #import -extern KERNBOOTSTRUCT *kernBootStruct; extern char *Language; extern char *LoadableFamilies; @@ -315,9 +314,9 @@ BOOL getValueForKey( int *size ) { - if (getValueForBootKey(kernBootStruct->bootString, key, val, size)) + if (getValueForBootKey(bootArgs->bootString, key, val, size)) return YES; - else if (getValueForStringTableKey(kernBootStruct->config, key, val, size)) + else if (getValueForStringTableKey(bootArgs->config, key, val, size)) return YES; return NO; @@ -382,7 +381,7 @@ int sysConfigValid; int loadConfigFile( char *configFile, char **table, int allocTable) { - char *configPtr = kernBootStruct->configEnd; + char *configPtr = bootArgs->configEnd; int fd, count; /* Read config file into memory */ @@ -391,7 +390,7 @@ loadConfigFile( char *configFile, char **table, int allocTable) if (allocTable) { configPtr = malloc(file_size(fd)+2); } else { - if ((configPtr - kernBootStruct->config) > CONFIG_SIZE) { + if ((configPtr - bootArgs->config) > CONFIG_SIZE) { error("No room in memory for config file %s\n",configFile); close(fd); return -1; @@ -406,7 +405,7 @@ loadConfigFile( char *configFile, char **table, int allocTable) *configPtr++ = 0; *configPtr = 0; if (!allocTable) - kernBootStruct->configEnd = configPtr; + bootArgs->configEnd = configPtr; return 0; } else { @@ -552,8 +551,8 @@ loadOtherConfigs( error("Warning: No active drivers specified in system config\n"); } - kernBootStruct->first_addr0 = - (int)kernBootStruct->configEnd + 1024; + bootArgs->first_addr0 = + (int)bootArgs->configEnd + 1024; return 0; }