[SeaBIOS] What do I pass to cbfs_run_payload() after finding the payload with romfile_find() ?
Kevin O'Connor
kevin at koconnor.net
Thu Aug 30 02:54:49 CEST 2012
On Wed, Aug 29, 2012 at 02:06:03PM -0500, Dave Frodin wrote:
[...]
> This is where I'm at after the change ...
>
> // Output the LCD splash image to the Explorer board
> struct romfile_s *file;
> dprintf(1,"Looking for Explorer LCD splash payload ... ");
> file = romfile_find("img/explorer-splash");
> if(file)
> {
> dprintf(1," found file [%s]. Loading it...\n ",file->name); <=== everything works up to here
> // cbfs_run_payload();
> }
> else dprintf(1,"could NOT find it!\n");
>
> The cbfs_run_payload is expecting (cbfs_file *). How do I extract what cbfs_run_payload() wants from what
> I got back from romfile_find() ?
cbfs_run_payload((void*)file->id);
-Kevin
More information about the SeaBIOS
mailing list