[OpenBIOS] [commit] r783 - in trunk/openbios-devel: drivers packages
repository service
svn at openbios.org
Thu May 27 22:11:59 CEST 2010
Author: blueswirl
Date: Thu May 27 22:11:59 2010
New Revision: 783
URL: http://tracker.coreboot.org/trac/openbios/changeset/783
Log:
video: framebuffer properties must be 32bit values
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko at gmail.com>
Signed-off-by: Blue Swirl <blauwirbel at gmail.com>
Modified:
trunk/openbios-devel/drivers/vga_vbe.c
trunk/openbios-devel/packages/video.c
Modified: trunk/openbios-devel/drivers/vga_vbe.c
==============================================================================
--- trunk/openbios-devel/drivers/vga_vbe.c Thu May 27 22:11:56 2010 (r782)
+++ trunk/openbios-devel/drivers/vga_vbe.c Thu May 27 22:11:59 2010 (r783)
@@ -161,7 +161,7 @@
set_int_property(ph, "height", height);
set_int_property(ph, "depth", depth);
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");
push_str(path);
Modified: trunk/openbios-devel/packages/video.c
==============================================================================
--- trunk/openbios-devel/packages/video.c Thu May 27 22:11:56 2010 (r782)
+++ trunk/openbios-devel/packages/video.c Thu May 27 22:11:59 2010 (r783)
@@ -320,11 +320,11 @@
video.fb.depth = depth;
video.fb.rb = rb;
while( (ph=dt_iterate_type(ph, "display")) ) {
- set_property( ph, "width", (char*)&video.fb.w, 4 );
- set_property( ph, "height", (char*)&video.fb.h, 4 );
- set_property( ph, "depth", (char*)&video.fb.depth, 4 );
- set_property( ph, "linebytes", (char*)&video.fb.rb, 4 );
- set_property( ph, "address", (char*)&video.fb.mphys, 4 );
+ set_int_property( ph, "width", video.fb.w );
+ set_int_property( ph, "height", video.fb.h );
+ set_int_property( ph, "depth", video.fb.depth );
+ set_int_property( ph, "linebytes", video.fb.rb );
+ set_int_property( ph, "address", video.fb.mphys );
}
video.has_video = 1;
video.pal = malloc( 256 * sizeof(ulong) );
More information about the OpenBIOS
mailing list