mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-27 17:49:23 +00:00
Fix address size in ofwfb on sparc64 (based on info by bvk)
This commit is contained in:
1 parent
016a671b51
commit
18d4c6f0ce
1 file changed
+3
-3
+3
-3
@@ -124,8 +124,7 @@ grub_video_ieee1275_setup (unsigned int width, unsigned int height,
|
|||||||
unsigned int mode_type __attribute__ ((unused)),
|
unsigned int mode_type __attribute__ ((unused)),
|
||||||
unsigned int mode_mask __attribute__ ((unused)))
|
unsigned int mode_mask __attribute__ ((unused)))
|
||||||
{
|
{
|
||||||
grub_uint32_t current_width, current_height;
|
grub_uint32_t current_width, current_height, address;
|
||||||
grub_addr_t address;
|
|
||||||
grub_err_t err;
|
grub_err_t err;
|
||||||
grub_ieee1275_phandle_t dev;
|
grub_ieee1275_phandle_t dev;
|
||||||
|
|
||||||
@@ -167,7 +166,8 @@ grub_video_ieee1275_setup (unsigned int width, unsigned int height,
|
|||||||
sizeof (address), 0))
|
sizeof (address), 0))
|
||||||
return grub_error (GRUB_ERR_IO, "Couldn't retrieve display address.");
|
return grub_error (GRUB_ERR_IO, "Couldn't retrieve display address.");
|
||||||
|
|
||||||
framebuffer.ptr = (void *) address;
|
/* For some reason sparc64 uses 32-bit pointer too. */
|
||||||
|
framebuffer.ptr = (void *) (grub_addr_t) address;
|
||||||
|
|
||||||
grub_video_ieee1275_set_palette (0, GRUB_VIDEO_FBSTD_NUMCOLORS,
|
grub_video_ieee1275_set_palette (0, GRUB_VIDEO_FBSTD_NUMCOLORS,
|
||||||
grub_video_fbstd_colors);
|
grub_video_fbstd_colors);
|
||||||
|
|||||||
Reference in new issue
Block a user