mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user