Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180559
b: refs/heads/master
c: ce36f00
h: refs/heads/master
i:
  180557: 2028fad
  180555: 2ab1691
  180551: 8fa0aff
  180543: 96dfc2e
v: v3
  • Loading branch information
Matt Turner authored and Dave Airlie committed Feb 15, 2010
1 parent f68f2dc commit a3c059a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e22238ea37a870f70e34668a4992bde0c92bba8d
refs/heads/master: ce36f00d599e0f988c2a1b7b276d9184ee9c5d82
5 changes: 4 additions & 1 deletion trunk/drivers/gpu/drm/radeon/atom.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <linux/module.h>
#include <linux/sched.h>
#include <asm/unaligned.h>

#define ATOM_DEBUG

Expand Down Expand Up @@ -212,7 +213,9 @@ static uint32_t atom_get_src_int(atom_exec_context *ctx, uint8_t attr,
case ATOM_ARG_PS:
idx = U8(*ptr);
(*ptr)++;
val = le32_to_cpu(ctx->ps[idx]);
/* get_unaligned_le32 avoids unaligned accesses from atombios
* tables, noticed on a DEC Alpha. */
val = get_unaligned_le32((u32 *)&ctx->ps[idx]);
if (print)
DEBUG("PS[0x%02X,0x%04X]", idx, val);
break;
Expand Down

0 comments on commit a3c059a

Please sign in to comment.