diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-11-16 03:43:06 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2010-11-16 03:43:06 +0000 |
commit | 19dbb181633741563c511cf84ab2439b4e381d47 (patch) | |
tree | 55f33916036a81dbd026f042a06b2bcf92e2637e /sys/dev/drm/radeon_cs.c | |
parent | e41a851f0380ee8355aa918a5f2ae5bcdd46d6a9 (diff) | |
download | FreeBSD-src-19dbb181633741563c511cf84ab2439b4e381d47.zip FreeBSD-src-19dbb181633741563c511cf84ab2439b4e381d47.tar.gz |
Make drm(4) build, if not work reliably, on PowerPC.
Diffstat (limited to 'sys/dev/drm/radeon_cs.c')
-rw-r--r-- | sys/dev/drm/radeon_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm/radeon_cs.c b/sys/dev/drm/radeon_cs.c index 14fe2fc..6dd82a2 100644 --- a/sys/dev/drm/radeon_cs.c +++ b/sys/dev/drm/radeon_cs.c @@ -765,7 +765,7 @@ static int r600_cs_parse(struct drm_radeon_cs_parser *parser) memcpy(parser->ib, ib_chunk->kdata, ib_chunk->length_dw * sizeof(uint32_t)); /* read back last byte to flush WC buffers */ - rb = readl(((vm_offset_t)parser->ib + (ib_chunk->length_dw-1) * sizeof(uint32_t))); + rb = *(volatile u_int32_t *) (((vm_offset_t)parser->ib + (ib_chunk->length_dw-1) * sizeof(uint32_t))); return 0; } |