diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2010-09-30 19:30:35 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2010-09-30 19:30:35 -0400 |
commit | e843faf355c864beab81e74f0e39f8ad53d4c2bf (patch) | |
tree | 7fa8f60ef0422f283addf64f5194a2c3acaf77a5 /src/radeon_video.c | |
parent | 886febc882053e09294225e85b102f965041b62b (diff) |
radeon: fix fbLocation for >32 bit MC addresses
If the fbLocation was at an address >32 bits, we'd fail.
Change fbLocation to uint64_t and properly cast when needed.
Diffstat (limited to 'src/radeon_video.c')
-rw-r--r-- | src/radeon_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon_video.c b/src/radeon_video.c index 1a42951c..f28e7afa 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -2759,7 +2759,7 @@ RADEONDisplayVideo( OUTREG(RADEON_OV0_P3_X_START_END, (src_w + leftuv - 1) | (leftuv << 16)); if (info->ModeReg->ov0_base_addr != (info->fbLocation + base_offset)) { ErrorF("Changing OV0_BASE_ADDR from 0x%08x to 0x%08x\n", - info->ModeReg->ov0_base_addr, info->fbLocation + base_offset); + info->ModeReg->ov0_base_addr, (uint32_t)info->fbLocation + base_offset); info->ModeReg->ov0_base_addr = info->fbLocation + base_offset; OUTREG(RADEON_OV0_BASE_ADDR, info->ModeReg->ov0_base_addr); } |