mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Switch Forth loader over to using an ihandle rather than a direct path reference.
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@799 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Mark Cave-Ayland
parent
3d7832bba9
commit
78863dfcc9
@@ -23,7 +23,7 @@ int is_forth(char *forth)
|
||||
return (forth[0] == '\\' && forth[1] == ' ');
|
||||
}
|
||||
|
||||
int forth_load(const char *filename)
|
||||
int forth_load(ihandle_t dev)
|
||||
{
|
||||
char magic[2];
|
||||
unsigned long forthsize;
|
||||
@@ -32,7 +32,7 @@ int forth_load(const char *filename)
|
||||
/* Mark the saved-program-state as invalid */
|
||||
feval("0 state-valid !");
|
||||
|
||||
fd = open_io(filename);
|
||||
fd = open_ih(dev);
|
||||
if (!fd)
|
||||
goto out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user