mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
video: framebuffer properties must be 32bit values
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@783 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Blue Swirl
parent
4e52b986df
commit
e8306d2724
@@ -161,7 +161,7 @@ void vga_vbe_init(const char *path, unsigned long fb, uint32_t fb_size,
|
|||||||
set_int_property(ph, "height", height);
|
set_int_property(ph, "height", height);
|
||||||
set_int_property(ph, "depth", depth);
|
set_int_property(ph, "depth", depth);
|
||||||
set_int_property(ph, "linebytes", linebytes);
|
set_int_property(ph, "linebytes", linebytes);
|
||||||
set_int_property(ph, "address", fb & ~0x0000000F);
|
set_int_property(ph, "address", (u32)(fb & ~0x0000000F));
|
||||||
|
|
||||||
chosen = find_dev("/chosen");
|
chosen = find_dev("/chosen");
|
||||||
push_str(path);
|
push_str(path);
|
||||||
|
|||||||
@@ -320,11 +320,11 @@ init_video( unsigned long fb, int width, int height, int depth, int rb )
|
|||||||
video.fb.depth = depth;
|
video.fb.depth = depth;
|
||||||
video.fb.rb = rb;
|
video.fb.rb = rb;
|
||||||
while( (ph=dt_iterate_type(ph, "display")) ) {
|
while( (ph=dt_iterate_type(ph, "display")) ) {
|
||||||
set_property( ph, "width", (char*)&video.fb.w, 4 );
|
set_int_property( ph, "width", video.fb.w );
|
||||||
set_property( ph, "height", (char*)&video.fb.h, 4 );
|
set_int_property( ph, "height", video.fb.h );
|
||||||
set_property( ph, "depth", (char*)&video.fb.depth, 4 );
|
set_int_property( ph, "depth", video.fb.depth );
|
||||||
set_property( ph, "linebytes", (char*)&video.fb.rb, 4 );
|
set_int_property( ph, "linebytes", video.fb.rb );
|
||||||
set_property( ph, "address", (char*)&video.fb.mphys, 4 );
|
set_int_property( ph, "address", video.fb.mphys );
|
||||||
}
|
}
|
||||||
video.has_video = 1;
|
video.has_video = 1;
|
||||||
video.pal = malloc( 256 * sizeof(ulong) );
|
video.pal = malloc( 256 * sizeof(ulong) );
|
||||||
|
|||||||
Reference in New Issue
Block a user