Preopen display and store result in /chosen (Laurent Vivier)

git-svn-id: svn://coreboot.org/openbios/openbios-devel@354 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-01-05 20:16:31 +00:00
parent 7d6c9b0e78
commit c281fcafb2

View File

@@ -115,10 +115,13 @@ void vga_vbe_init(const char *path, uint32_t fb, uint32_t fb_size,
set_int_property(ph, "address", fb & ~0x0000000F); set_int_property(ph, "address", fb & ~0x0000000F);
chosen = find_dev("/chosen"); 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"); aliases = find_dev("/aliases");
set_property(aliases, "screen", path, strlen(path) + 1); set_property(aliases, "screen", path, strlen(path) + 1);
if (rom_size >= 8) { if (rom_size >= 8) {
const char *p; const char *p;
int size; int size;