summaryrefslogtreecommitdiff
path: root/src/legacy
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-01-26 13:10:21 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-01-26 13:18:56 +0000
commit64e9c79017cb4bdb2dc18920ba9dcea0f9cea1a8 (patch)
treee77df137a3ffc344d33fc3b08ce6e728fe50a6bc /src/legacy
parent33f7d5e4283d5c63eb1af287fece6af0f8e51feb (diff)
legacy/i810: Expand mask to match unsigned long
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/legacy')
-rw-r--r--src/legacy/i810/i810_memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/legacy/i810/i810_memory.c b/src/legacy/i810/i810_memory.c
index c3de2777..6f274836 100644
--- a/src/legacy/i810/i810_memory.c
+++ b/src/legacy/i810/i810_memory.c
@@ -76,7 +76,7 @@ I810AllocateGARTMemory(ScrnInfoPtr pScrn)
unsigned long size = pScrn->videoRam * 1024UL;
I810Ptr pI810 = I810PTR(pScrn);
int key;
- long tom = 0;
+ unsigned long tom = 0;
unsigned long physical;
if (!xf86AgpGARTSupported() || !xf86AcquireGART(pScrn->scrnIndex)) {
@@ -132,8 +132,8 @@ I810AllocateGARTMemory(ScrnInfoPtr pScrn)
* Keep it 512K aligned for the sake of tiled regions.
*/
- tom += 0x7ffff;
- tom &= ~0x7ffff;
+ tom += 0x7ffffUL;
+ tom &= ~0x7ffffUL;
if ((key = xf86AllocateGARTMemory(pScrn->scrnIndex, size, 1, NULL)) != -1) {
pI810->DcacheOffset = tom;