;
; Load configuration file
;
- pm_call load_config
+ pm_call pm_load_config
jz no_config_file
;
; fs.c
extern fs_init, pm_searchdir, getfssec, getfsbytes
- extern pm_mangle_name, load_config
+ extern pm_mangle_name, pm_load_config
extern pm_open_file, pm_close_file
extern SectorSize, SectorShift
* Convert between a 16-bit file handle and a file structure
*/
-void load_config(void)
+void pm_load_config(com32sys_t *regs)
{
int err;
if (err)
printf("ERROR: No configuration file found\n");
+
+ regs->eflags.l &= ~(EFLAGS_ZF | EFLAGS_CF);
+ regs->eflags.l |= err ? EFLAGS_ZF : 0;
}
void pm_mangle_name(com32sys_t *regs)
;
; Locate the configuration file
;
- pm_call load_config
+ pm_call pm_load_config
+ jz no_config_file
;
; Now we have the config file open. Parse the config file and
;
;
-; Load configuration file
-;
- pm_call load_config
-
-;
; Linux kernel loading code is common. However, we need to define
; a couple of helper macros...
;
%endmacro
;
+; Load configuration file
+;
+ pm_call pm_load_config
+ jz no_config_file
+
+;
; Now we have the config file open. Parse the config file and
; run the user interface.
;