Rev 1403 | Rev 1430 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1403 | Rev 1428 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | * Author: Stanislaw Skowronek |
22 | * Author: Stanislaw Skowronek |
23 | */ |
23 | */ |
Line 24... | Line 24... | ||
24 | 24 | ||
25 | #include |
25 | #include |
- | 26 | #include |
|
Line 26... | Line 27... | ||
26 | #include |
27 | #include |
Line 27... | Line 28... | ||
27 | 28 | ||
28 | #define ATOM_DEBUG |
29 | #define ATOM_DEBUG |
Line 210... | Line 211... | ||
210 | } |
211 | } |
211 | break; |
212 | break; |
212 | case ATOM_ARG_PS: |
213 | case ATOM_ARG_PS: |
213 | idx = U8(*ptr); |
214 | idx = U8(*ptr); |
214 | (*ptr)++; |
215 | (*ptr)++; |
- | 216 | /* get_unaligned_le32 avoids unaligned accesses from atombios |
|
- | 217 | * tables, noticed on a DEC Alpha. */ |
|
215 | val = le32_to_cpu(ctx->ps[idx]); |
218 | val = get_unaligned_le32((u32 *)&ctx->ps[idx]); |
216 | if (print) |
219 | if (print) |
217 | DEBUG("PS[0x%02X,0x%04X]", idx, val); |
220 | DEBUG("PS[0x%02X,0x%04X]", idx, val); |
218 | break; |
221 | break; |
219 | case ATOM_ARG_WS: |
222 | case ATOM_ARG_WS: |
220 | idx = U8(*ptr); |
223 | idx = U8(*ptr); |