Author: blueswirl Date: 2009-01-05 21:16:31 +0100 (Mon, 05 Jan 2009) New Revision: 354
Modified: openbios-devel/drivers/vga_vbe.c Log: Preopen display and store result in /chosen (Laurent Vivier)
Modified: openbios-devel/drivers/vga_vbe.c =================================================================== --- openbios-devel/drivers/vga_vbe.c 2009-01-05 20:14:07 UTC (rev 353) +++ openbios-devel/drivers/vga_vbe.c 2009-01-05 20:16:31 UTC (rev 354) @@ -115,10 +115,13 @@ set_int_property(ph, "address", fb & ~0x0000000F);
chosen = find_dev("/chosen"); - set_int_property(chosen, "display", ph); + push_str(path); + fword("open-dev"); + set_int_property(chosen, "display", POP());
aliases = find_dev("/aliases"); set_property(aliases, "screen", path, strlen(path) + 1); + if (rom_size >= 8) { const char *p; int size;